From dd5bb1d215b7c89cc6cef74b8936184b375f56d7 Mon Sep 17 00:00:00 2001 From: hyperkai Date: Tue, 10 Mar 2026 02:31:09 +0900 Subject: [PATCH 1/2] Correct "parameterized" to "argumentized" --- Doc/library/stdtypes.rst | 4 ++-- Objects/genericaliasobject.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst index c930b876b3ccbf..de3eaa034be20a 100644 --- a/Doc/library/stdtypes.rst +++ b/Doc/library/stdtypes.rst @@ -5832,7 +5832,7 @@ The builtin functions :func:`isinstance` and :func:`issubclass` do not accept >>> isinstance([1, 2], list[str]) Traceback (most recent call last): File "", line 1, in - TypeError: isinstance() argument 2 cannot be a parameterized generic + TypeError: isinstance() argument 2 cannot be an argumentized generic type The Python runtime does not enforce :term:`type annotations `. This extends to generic types and their type parameters. When creating @@ -6087,7 +6087,7 @@ enables cleaner type hinting syntax compared to subscripting :class:`typing.Unio >>> isinstance([1], int | list[int]) Traceback (most recent call last): ... - TypeError: isinstance() argument 2 cannot be a parameterized generic + TypeError: isinstance() argument 2 cannot be an argumentized generic type The user-exposed type for the union object can be accessed from :class:`typing.Union` and used for :func:`isinstance` checks:: diff --git a/Objects/genericaliasobject.c b/Objects/genericaliasobject.c index 7aef56cf4e93b8..950d26c6826264 100644 --- a/Objects/genericaliasobject.c +++ b/Objects/genericaliasobject.c @@ -753,7 +753,7 @@ static PyObject * ga_instancecheck(PyObject *self, PyObject *Py_UNUSED(ignored)) { PyErr_SetString(PyExc_TypeError, - "isinstance() argument 2 cannot be a parameterized generic"); + "isinstance() argument 2 cannot be an argumentized generic type"); return NULL; } @@ -761,7 +761,7 @@ static PyObject * ga_subclasscheck(PyObject *self, PyObject *Py_UNUSED(ignored)) { PyErr_SetString(PyExc_TypeError, - "issubclass() argument 2 cannot be a parameterized generic"); + "issubclass() argument 2 cannot be an argumentized generic type"); return NULL; } From d7b6a77cd1ff6fe8646ac1aa421b9a11acaec65b Mon Sep 17 00:00:00 2001 From: "blurb-it[bot]" <43283697+blurb-it[bot]@users.noreply.github.com> Date: Mon, 9 Mar 2026 18:40:58 +0000 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=93=9C=F0=9F=A4=96=20Added=20by=20blu?= =?UTF-8?q?rb=5Fit.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../2026-03-09-18-40-57.gh-issue-145699.KqOPhy.rst | 1 + 1 file changed, 1 insertion(+) create mode 100644 Misc/NEWS.d/next/Core_and_Builtins/2026-03-09-18-40-57.gh-issue-145699.KqOPhy.rst diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2026-03-09-18-40-57.gh-issue-145699.KqOPhy.rst b/Misc/NEWS.d/next/Core_and_Builtins/2026-03-09-18-40-57.gh-issue-145699.KqOPhy.rst new file mode 100644 index 00000000000000..dd65e7dc27e8e7 --- /dev/null +++ b/Misc/NEWS.d/next/Core_and_Builtins/2026-03-09-18-40-57.gh-issue-145699.KqOPhy.rst @@ -0,0 +1 @@ +"parameterized generic" should be "argumentized generic type"