Closed rsokl closed 8 months ago
import typing import typing_extensions as tp_ext assert typing.Literal['a'] is typing.Literal['a'] # Passes for Python 3.8<= assert tp_ext.Literal['a'] is tp_ext.Literal['a'] # Fails for Python <3.10
This isn't a guaranteed part of the interface, just as you may see differences in behavior for checks like 1 is 1 between Python versions.
1 is 1