summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorKen Jin <28750310+Fidget-Spinner@users.noreply.github.com>2021-04-28 15:38:14 (GMT)
committerGitHub <noreply@github.com>2021-04-28 15:38:14 (GMT)
commit859577c24981d6b36960d309f99f7fc810fe75c2 (patch)
tree172b56f0aec20bc47c0fe0d39e44e6e040d0e63d /Misc
parentc1a9535989cc7323099725503519a17f79d083f5 (diff)
downloadcpython-859577c24981d6b36960d309f99f7fc810fe75c2.zip
cpython-859577c24981d6b36960d309f99f7fc810fe75c2.tar.gz
cpython-859577c24981d6b36960d309f99f7fc810fe75c2.tar.bz2
bpo-41559: Change PEP 612 implementation to pure Python (#25449)
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Library/2021-04-17-10-49-57.bpo-41559.caIwt9.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2021-04-17-10-49-57.bpo-41559.caIwt9.rst b/Misc/NEWS.d/next/Library/2021-04-17-10-49-57.bpo-41559.caIwt9.rst
new file mode 100644
index 0000000..11db423
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2021-04-17-10-49-57.bpo-41559.caIwt9.rst
@@ -0,0 +1,6 @@
+:pep:`612` is now implemented purely in Python; builtin ``types.GenericAlias``
+objects no longer include ``typing.ParamSpec`` in ``__parameters__``
+(with the exception of ``collections.abc.Callable``\ 's ``GenericAlias``).
+This means previously invalid uses of ``ParamSpec`` (such as
+``list[P]``) which worked in earlier versions of Python 3.10 alpha,
+will now raise ``TypeError`` during substitution.