We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
NamedTuple
Consider this code:
from typing import NamedTuple class A(NamedTuple): class B: ...
In runtime you can freely access it:
>>> from typing import NamedTuple >>> >>> class A(NamedTuple): ... class B: ... ... >>> A.B <class '__main__.A.B'>
But, stubgen does ignore it:
stubgen
» stubgen ex.py && bat out/ex.pyi Processed 1 modules Generated out/ex.pyi ───────┬─────────────────────────────────────────────────────────────────────────────────── │ File: out/ex.pyi ───────┼─────────────────────────────────────────────────────────────────────────────────── 1 │ from typing import NamedTuple 2 │ 3 │ class A(NamedTuple): ... ───────┴───────────────────────────────────────────────────────────────────────────────────
This needs to be fixed.
The text was updated successfully, but these errors were encountered:
...
sobolevn
Successfully merging a pull request may close this issue.
Consider this code:
In runtime you can freely access it:
But,
stubgen
does ignore it:This needs to be fixed.
The text was updated successfully, but these errors were encountered: