]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-44633: Fix parameter substitution of the union type with wrong types. (GH-27218...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 18 Jul 2021 11:59:25 +0000 (04:59 -0700)
committerGitHub <noreply@github.com>
Sun, 18 Jul 2021 11:59:25 +0000 (14:59 +0300)
commit85b58292cf94de74d028053ac33a65f269f305cb
tree304937fd8c945ea985e8208da171bb9d097561b7
parent03aad3049d1591c76a219dfe089e5367f88f167e
bpo-44633: Fix parameter substitution of the union type with wrong types. (GH-27218) (GH-27224)

A TypeError is now raised instead of returning NotImplemented.
(cherry picked from commit 3ea5332a4365bdd771286b3e9692495116e9ceef)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
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