mirror of
https://github.com/python/cpython.git
synced 2026-02-07 10:20:33 +00:00
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 3ea5332a43)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
This commit is contained in:
parent
03aad3049d
commit
85b58292cf
3 changed files with 36 additions and 16 deletions
|
|
@ -0,0 +1,2 @@
|
|||
Parameter substitution of the union type with wrong types now raises
|
||||
``TypeError`` instead of returning ``NotImplemented``.
|
||||
Loading…
Add table
Add a link
Reference in a new issue