]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-44524: Do not set _name of _SpecialForm without need (GH-27861)
authorSerhiy Storchaka <storchaka@gmail.com>
Sat, 21 Aug 2021 06:47:59 +0000 (09:47 +0300)
committerGitHub <noreply@github.com>
Sat, 21 Aug 2021 06:47:59 +0000 (09:47 +0300)
commit4ceec495598e78f0776dd46d511dcc612a434dc3
tree7263799719ceecf6cb70d72c5ee0d2bfbe112e49
parent16b9be4861e007ad483611ba0479feb2b90ea783
bpo-44524: Do not set _name of _SpecialForm without need (GH-27861)

Because setting non-empty _name affects behavior of other code.

In most cases __name__ can be derived from __origin__.__name__.
Lib/test/test_typing.py
Lib/typing.py