-
Notifications
You must be signed in to change notification settings - Fork 22
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
Using beniget to parse stubs produce errors #55
Comments
Here are a few of the problematic code fragments: class _ScandirIterator(Iterator[DirEntry[AnyStr]], AbstractContextManager[_ScandirIterator[AnyStr]]):
... _F = TypeVar("_F", bound=Callable[..., Any])
Callable = object |
Any thoughts, @serge-sans-paille ? |
Closed
@serge-sans-paille could you please think whether you’d like to have this feature as part of beniget? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Here are the warnings that beniget reports (with PEP563 enabled) when parsing the typeshed builtins module and all its dependencies.
Most of them are because cyclic definitions of type aliases, or using a forward reference in a TypeVar bound argument.
We could introduce a new constructor flag that would signify whether we're inside a stub module and change a few behaviour regarding name resolution for a few specific scenarios.
Tell me what you think,
The text was updated successfully, but these errors were encountered: