-
Notifications
You must be signed in to change notification settings - Fork 3
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
More strictness in mypy (WIP) #61
base: master
Are you sure you want to change the base?
Conversation
@@ -8,6 +8,8 @@ exclude=tests,migrations | |||
[mypy] | |||
ignore_missing_imports=true | |||
strict_optional=true | |||
disallow_any_generics=true |
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.
What is an example of what this would disallow? (the documentation isn't very clear on 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.
foo: List
rather than foo: List[int]
👍 |
@prophile I've fixed a few things here, but would appreciate a review as my approach might not be the best. |
I don't think we should bypass the layering tests for type checking. Actually I'd claim that the layering tests are correctly exposing dependencies here: where we're implicitly depending on the shape of component A from component B that's still a dependency on A from B even if it's previously not been unmasked. |
No description provided.