(🐞) New union syntax inconsistent with old union syntax, now it contains Any
#12224
Labels
bug
mypy got something wrong
topic-disallow-any
The disallow-any-* family of flags
topic-pep-604
PEP 604 (union | operator)
topic-union-types
main.py:5: error: Expression type contains "Any" (has type "Type[A]")
But no error on the last line
https://mypy-play.net/?mypy=latest&python=3.10&flags=disallow-any-expr&gist=dd6dcaf336fb58d4afc3310200259630
The text was updated successfully, but these errors were encountered: