Comprehension in class scope should see class variables #1000
Labels
bug
mypy got something wrong
false-positive
mypy gave an error on correct code
priority-2-low
topic-python2
issues only applicable to Python 2
topic-runtime-semantics
mypy doesn't model runtime semantics correctly
Example:
This is valid Python code, but mypy doesn't believe that A exists. (Note that it's specific to comprehensions and generator expressions -- if I put a plain
C = A.lower()
there it works fine.)The text was updated successfully, but these errors were encountered: