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
This is a small remainder of #2535
Example to reproduce: run mypy -i main.py twice (without touching any files in between) where:
mypy -i main.py
import ntcrash
from typing import NamedTuple class C: def f(self) -> None: class D: class E: def g(self) -> None: A = NamedTuple('A', [('x', int), ('y', int)]) self.a = A(1, 1) self.c = D.E().a
Possible fix would be to store all "anonymous" classes in globals.
globals
The text was updated successfully, but these errors were encountered:
One needs to add reveal_type(ntcrash.C().c) between two runs to trigger the crash.
reveal_type(ntcrash.C().c)
Sorry, something went wrong.
I think this is fixed on master, possibly by #10431
No branches or pull requests
This is a small remainder of #2535
Example to reproduce: run
mypy -i main.py
twice (without touching any files in between) where:Possible fix would be to store all "anonymous" classes in
globals
.The text was updated successfully, but these errors were encountered: