-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Fix 7190:__init_subclass__ is not type-checked #7452
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
a709e11
simulate a Call to Base.__init_subclass__
gantsevdenis dd3df66
added fixture
gantsevdenis 1dfae8c
update existing test; class B would fail at runtime
gantsevdenis 081e19c
added tests
gantsevdenis 145d254
base, not typ
gantsevdenis bd66bca
flake8
gantsevdenis 1d12de7
trailing space
gantsevdenis 7dccdb7
fix type
gantsevdenis f5cc79a
added test for metaclass
gantsevdenis 1c62e37
make signature conform to typeshed
gantsevdenis 6729fe8
refactor into a method + check for metaclass + added comments
gantsevdenis 502aa3f
space
gantsevdenis dfb6551
missing return + annotation
gantsevdenis b860c3a
Update mypy/checker.py
gantsevdenis 012b817
Update mypy/checker.py
gantsevdenis a8fcb3e
Update mypy/checker.py
gantsevdenis ef295b5
Update mypy/checker.py
gantsevdenis ddc1dce
Update mypy/checker.py
gantsevdenis 2c0c20f
added test with imports
gantsevdenis 67a761b
check for "object" too
gantsevdenis 79208fd
stylistic changes
gantsevdenis 8eb7b8d
added test
gantsevdenis 9a7ab31
simplify logic
gantsevdenis 2281a86
modify test
gantsevdenis f8f330a
sync typeshed to master
gantsevdenis 0a16c0c
Merge from upstream/master
gantsevdenis 0850dff
flake8
gantsevdenis 798ff33
Update mypy/checker.py
gantsevdenis 6f5bda9
Update mypy/checker.py
gantsevdenis ab8a6c8
move comment line
gantsevdenis 7da5d11
undo pin move
gantsevdenis File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Update mypy/checker.py
Co-Authored-By: Ivan Levkivskyi <levkivskyi@gmail.com>
- Loading branch information
commit 012b81764891b428bfdea3a065174ae0dc0a6056
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
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 for adding the docstring! Normally we use this style:
The summary in your case may be
Check that keywords in a class definition are valid arguments for __init_subclass__().