You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As mentioned in #3952 (comment) some double-forward references (and other corner cases) are currently not resolved. For example this does not work:
x: AA=BB=List[int]
This is because third pass happens only once. In checker.py we have deferred nodes, and there are mini-passes over them until they are all done, I think we can adopt the same idea here and have repeated third passes.
This is however low priority since these edge cases are extremely rare and don't cause crashes, only false positives.
The text was updated successfully, but these errors were encountered:
Yes, this is just a simple illustration, there are other more complex situations that will work at runtime, but not in mypy, all of them are purely "academic" however.
As mentioned in #3952 (comment) some double-forward references (and other corner cases) are currently not resolved. For example this does not work:
This is because third pass happens only once. In
checker.py
we have deferred nodes, and there are mini-passes over them until they are all done, I think we can adopt the same idea here and have repeated third passes.This is however low priority since these edge cases are extremely rare and don't cause crashes, only false positives.
The text was updated successfully, but these errors were encountered: