Skip to content
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

Refactor stubgen to do semantic analysis #3982

Closed
dmoisset opened this issue Sep 22, 2017 · 1 comment
Closed

Refactor stubgen to do semantic analysis #3982

dmoisset opened this issue Sep 22, 2017 · 1 comment
Labels

Comments

@dmoisset
Copy link
Contributor

Currently stubgen just builds an AST and works mostly at a syntactic level. Given that, most type annotations during its executions are actually instances of UnboundType and forces stubgen to make some assumptions because of lack of information (for example in a type X.Y.Z, which part of that path is a module name, or if actually X = Y is a type alias or not)

This comes from #3169 (comment)

@ilevkivskyi
Copy link
Member

Thus is now supported (and controlled by a flag, see https://mypy.readthedocs.io/en/latest/stubgen.html#specifying-how-to-generate-stubs)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants