-
-
Notifications
You must be signed in to change notification settings - Fork 120
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
Fill remaining missing hints & disallow partial hints #480
Fill remaining missing hints & disallow partial hints #480
Conversation
Disallow untyped/incomplete function definitions. Just like django-stubs.
e4087ea
to
766f8d1
Compare
[mypy-yaml.*] | ||
disallow_untyped_defs = false | ||
disallow_incomplete_defs = false |
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 think these are necessary due to the way pytest-mypy-plugins
works.
Mypy ordinarily ignores errors from site-packages imports, but they aren't ignored in tests.
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 can be a new bug / feature request in pytest-mypy-plugins
. Users should not see this.
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.
👍 Reported issue typeddjango/pytest-mypy-plugins#134
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.
Thanks! I skimmed through, this is not a detailed review :)
We can fix any annotation later if needed.
Disallow untyped/incomplete function definitions (
disallow_untyped_defs = true
,disallow_incomplete_defs = true
)But using
_typeshed.Incomplete
instead ofAny
as the placeholder type.Related issues
mypy.ini
config with django-stubs #479