-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Various improvements to stubgen #7921
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 all commits
Commits
Show all changes
51 commits
Select commit
Hold shift + click to select a range
aa0673f
Stubgen: Remove misplaced type comments before parsing
JukkaL ae33876
stubgen: Don't fail if docstring cannot be tokenized
JukkaL 80108d3
stubgen: Handle None value for __file__
JukkaL 37a1ab9
stubgen: Fix None-related crash
JukkaL 020b11f
stubgen: Attempt to fix namespace packages
JukkaL e1de866
stubgen: Add --verbose and --quiet flags
JukkaL 4473075
stubgen: Use __init__.pyi for C modules when needed
JukkaL 3a0986d
stubgen: If we can't import a module, give more information
JukkaL 049a2a4
stubgen: Work around crash
JukkaL bbf6268
stubgen: Don't fail if a class has a cyclic MRO
JukkaL a3ebf3c
stubgen: Log runtime imports in verbose mode
JukkaL a3a35fe
stubgen: More verbose output
JukkaL e287301
stubgen: Skip certain special cased packages
JukkaL 819a77d
stubgen: Filter out additional things that look like type comments
JukkaL 02d4184
stubgen: Survive inconsistent MROs
JukkaL 67142d6
stubgen: Remove message when there are only C modules
JukkaL bc3ca08
Fix rebase issue
JukkaL b1814d9
Fix after rebase
JukkaL 6f4a1fe
Add missing stuff
JukkaL 25e3258
Fix signatures generated by stubgen for various dunder C methods
JukkaL c9d2987
Add missing line
JukkaL 8777b5f
Ignore unreachable code in stubgen to avoid crashes
JukkaL 5ccd902
Fix C dunder method inference tests
JukkaL 09f1b13
Preserve @abstractproperty in stubgen
JukkaL a9721ed
Stubgen: Avoid name clashes between typing.Any and class Any etc.
JukkaL 6cefdc4
Stubgen: special case certain names to be exported
JukkaL 95ab57c
Fix None errors
JukkaL 156fe17
Add some docstrings and comments to stubgen tests
JukkaL 9b802e3
Stubgen: Generate exports for imported names that aren't referenced
JukkaL d7b2942
Stubgen: allow special casing internal definitions to be exported
JukkaL b739314
Stubgen: translate imports from vendored six to use real six
JukkaL add4a64
Stubgen: Remove generated header
JukkaL 8da487d
Add unit tests for skipping blacklisted and test modules
JukkaL 376513d
Add docstring
JukkaL 41a1f22
Add test case for vendored package
JukkaL b6db629
Fix lint
JukkaL c6aca1b
Update test case
JukkaL 3309f74
Always filter out tests
JukkaL 575cecd
Simplify redundant note
JukkaL bde23a1
Skip conftest modules (used for pytest tests)
JukkaL b4554e6
Fix crash
JukkaL c84677b
Filter out more kinds of bad function type comments
JukkaL be7414e
Recognize more modules as test modules
JukkaL 07e1955
Revert changes to imports
JukkaL e6bac88
Try to fix Windows
JukkaL 548bb10
Attempt to fix compiled
JukkaL f876154
Fix lint
JukkaL 56d1a73
Try to fix Python 3.5
JukkaL 58ae038
Respond to feedback
JukkaL 2989121
Merge branch 'master' into stubgen-fixes-batch
JukkaL 073832e
Fix stuff
JukkaL 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
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
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
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
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
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
Oops, something went wrong.
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.
Maybe add a TODO to make this more precise when the mypy issue is fixed?