[issue42345] Equality of typing.Literal depends on the order of arguments
Alick Zhao
report at bugs.python.org
Tue Oct 12 14:54:48 EDT 2021
Alick Zhao <alick9188 at gmail.com> added the comment:
Mainly to clarify, this is fixed in Python 3.9 and above, but won't be fixed in Python 3.8, right?
```
~$ python3.8
Python 3.8.11 (default, Jul 24 2021, 13:24:12)
[Clang 12.0.5 (clang-1205.0.22.11)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
Could not open PYTHONSTARTUP
FileNotFoundError: [Errno 2] No such file or directory: '/Users/taoz/.pythonstartup'
>>> from typing import Literal
>>> Literal[1,2]==Literal[2,1]
False
>>>
```
----------
nosy: +alick
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42345>
_______________________________________
More information about the Python-bugs-list
mailing list