]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-44524: Do not set _name of _SpecialForm without need (GH-27861) (GH-27871)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 21 Aug 2021 09:33:14 +0000 (02:33 -0700)
committerGitHub <noreply@github.com>
Sat, 21 Aug 2021 09:33:14 +0000 (12:33 +0300)
commit5bd27c3be5734e158f67ff86087a977a25d89161
treee40cee6a6eb8de4fad898f582263766c7ee4e43e
parent838b0e975fc2c106508eb27d19a9548533ac1e55
bpo-44524: Do not set _name of _SpecialForm without need (GH-27861) (GH-27871)

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

In most cases __name__ can be derived from __origin__.__name__.
(cherry picked from commit 4ceec495598e78f0776dd46d511dcc612a434dc3)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Lib/test/test_typing.py
Lib/typing.py