Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is intended to address issue #234.
It turns out that
mypy
does not look at the annotations in the main.py
file if a stub.pyi
file exists. So, functionality added since the.pyi
files were created that had annotations in-place were not having those annotations exported, resulting in a small subset of functionality missing type hints for this module.These gaps have been addressed.
The following related changes have also been made:
mypy.stubtest
to verify that the.pyi
and.py
files are in sync, ensuring this does not happen in the futuremypy
instead of using thepytest-mypy
plugin (this plugin was not actually runningmypy
)path.Path.joinpath()
has been fixed so that it no longer reports its return type asAny