Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Hide imported names in stubs unless 'as id' is used (PEP 484) #3706
PEP 484 specifies that only names imported as
from collections import TypeVar from weakref import Generic from getopt import List T = TypeVar('T') class C(Generic[T], List[int]): ...
This PR makes all these errors. CI will fail since there are several dozens of errors in typeshed, I am going to make a PR to typeshed soon.
Yeah, I get this for example:
referenced this pull request
Jul 13, 2017
I added one more test and simplified the PR, still I cannot do this with only one flag
Also typeshed is synced, so that this ready to be reviewed and merged.