summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2021-07-18 09:10:19 (GMT)
committerGitHub <noreply@github.com>2021-07-18 09:10:19 (GMT)
commit3ea5332a4365bdd771286b3e9692495116e9ceef (patch)
tree16df530cbe89be4f6cbbfd2060d39637a87d689d /Misc
parent0fd27375cabd12e68a2f12cfeca11a2d5043429e (diff)
downloadcpython-3ea5332a4365bdd771286b3e9692495116e9ceef.zip
cpython-3ea5332a4365bdd771286b3e9692495116e9ceef.tar.gz
cpython-3ea5332a4365bdd771286b3e9692495116e9ceef.tar.bz2
bpo-44633: Fix parameter substitution of the union type with wrong types. (GH-27218)
A TypeError is now raised instead of returning NotImplemented.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Core and Builtins/2021-07-17-21-04-04.bpo-44633.5-zKeI.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Core and Builtins/2021-07-17-21-04-04.bpo-44633.5-zKeI.rst b/Misc/NEWS.d/next/Core and Builtins/2021-07-17-21-04-04.bpo-44633.5-zKeI.rst
new file mode 100644
index 0000000..507a68b
--- /dev/null
+++ b/Misc/NEWS.d/next/Core and Builtins/2021-07-17-21-04-04.bpo-44633.5-zKeI.rst
@@ -0,0 +1,2 @@
+Parameter substitution of the union type with wrong types now raises
+``TypeError`` instead of returning ``NotImplemented``.