]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-44731: Simplify the union type implementation (GH-27318) (GH-27334)
authorKen Jin <28750310+Fidget-Spinner@users.noreply.github.com>
Sat, 24 Jul 2021 14:49:25 +0000 (22:49 +0800)
committerGitHub <noreply@github.com>
Sat, 24 Jul 2021 14:49:25 +0000 (15:49 +0100)
commitca5a4cf8266cf789eae379fe224458e94dd41b30
treec99a722f3868b74633e93a6074ffa5931b3b8e36
parent9356d1e47de583fd794e9d29abc448759f7a4109
bpo-44731: Simplify the union type implementation (GH-27318) (GH-27334)

Remove direct support of typing types in the C code because they are already supported by defining methods __or__ and __ror__ in the Python code.

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Lib/test/test_types.py
Lib/typing.py
Objects/unionobject.c