8000 Various improvements to stubgen by JukkaL · Pull Request #7921 · python/mypy · GitHub
[go: up one dir, main page]

Skip to content

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

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Revert changes to imports
  • Loading branch information
JukkaL committed Nov 11, 2019
commit 07e19550327fc0a1d13b51be4f3d55d31f9a9452
4 changes: 1 addition & 3 deletions mypy/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,8 @@
import pprint
import sys

from typing_extensions import Final
from typing import Dict, List, Mapping, Optional, Pattern, Set, Tuple, Callable, AnyStr
MYPY = False
if MYPY:
from typing_extensions import Final

from mypy import defaults
from mypy.util import get_class_descriptors, replace_object_state
Expand Down
0