-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Resolve mypy errors #28
Conversation
bdd1169
to
9702533
Compare
👋 @captaincoordinates @cuttlefish, @JBurkinshaw suggested you might be good candidates to give this a review, if you have time it's not high priority. You can see the original errors from main branch after disabling |
@underchemist I'm happy to take a look but just about to leave town for a few days. If it can wait I can look later in the week |
@captaincoordinates sounds good! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm seeing an error when I run pre-commit run --all-files
:
oaff/fastapi/gunicorn/gunicorn.conf.py:5: error: Module has no attribute "sched_getaffinity"
Found 1 error in 1 file (checked 107 source files)
Other than that, it makes sense to me in terms of making mypy happy. I think @captaincoordinates
will be in a better position to comment on some of the modifications and whether there are preferred alternatives.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great and the effort is much appreciated. I just have one change request and one suggestion, which you're welcome to disregard.
oaff/app/oaff/app/data/sources/postgresql/stac_hybrid/postgresql_data_source.py
Outdated
Show resolved
Hide resolved
@underchemist from your branch I am unable to successfully run All errors seem to be related to |
exclude non-source code directories for mypy add specific error code to # type: ignore
d8d5bb7
to
d5fd7eb
Compare
@captaincoordinates your error should be resolved by calling |
@JBurkinshaw I'll leave the merge to you. |
thanks @captaincoordinates, indeed |
Looks good. Making the class names more explicit is a good move. |
Description
Please include a summary of the change. Please also include relevant motivation and context. List any dependencies that are required for this change.
Depends on #26
Fixes #5, #27
Address errors produced by mypy configuration in #26. Includes
no_warn_no_return
andno_strict_optional
configuration options# type: ignore
Type of change
Please delete options that are not relevant.
Instructions
Explain what someone needs to do in order to test the functionality of the changes.
mypy should pass
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Checklist: