Describe the Bug
Reproducer:
from types import NoneType
N = NoneType
def test(x: int | N):
assert x is not None
reveal_type(x) # => NoneType | int
This looks like N is not normalized to None in the type of x.
Sandbox Link
No response
(Only applicable for extension issues) IDE Information
No response
Describe the Bug
Reproducer:
This looks like
Nis not normalized toNonein the type ofx.Sandbox Link
No response
(Only applicable for extension issues) IDE Information
No response