]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-44633: Fix parameter substitution of the union type with wrong types. (GH-27218)
authorSerhiy Storchaka <storchaka@gmail.com>
Sun, 18 Jul 2021 09:10:19 +0000 (12:10 +0300)
committerGitHub <noreply@github.com>
Sun, 18 Jul 2021 09:10:19 +0000 (12:10 +0300)
commit3ea5332a4365bdd771286b3e9692495116e9ceef
tree16df530cbe89be4f6cbbfd2060d39637a87d689d
parent0fd27375cabd12e68a2f12cfeca11a2d5043429e
bpo-44633: Fix parameter substitution of the union type with wrong types. (GH-27218)

A TypeError is now raised instead of returning NotImplemented.
Lib/test/test_types.py
Misc/NEWS.d/next/Core and Builtins/2021-07-17-21-04-04.bpo-44633.5-zKeI.rst [new file with mode: 0644]
Objects/unionobject.c