Skip to content

Commit dd5bb1d

Browse files
committed
Correct "parameterized" to "argumentized"
1 parent 171133a commit dd5bb1d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Doc/library/stdtypes.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5832,7 +5832,7 @@ The builtin functions :func:`isinstance` and :func:`issubclass` do not accept
58325832
>>> isinstance([1, 2], list[str])
58335833
Traceback (most recent call last):
58345834
File "<stdin>", line 1, in <module>
5835-
TypeError: isinstance() argument 2 cannot be a parameterized generic
5835+
TypeError: isinstance() argument 2 cannot be an argumentized generic type
58365836

58375837
The Python runtime does not enforce :term:`type annotations <annotation>`.
58385838
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
60876087
>>> isinstance([1], int | list[int])
60886088
Traceback (most recent call last):
60896089
...
6090-
TypeError: isinstance() argument 2 cannot be a parameterized generic
6090+
TypeError: isinstance() argument 2 cannot be an argumentized generic type
60916091

60926092
The user-exposed type for the union object can be accessed from
60936093
:class:`typing.Union` and used for :func:`isinstance` checks::

Objects/genericaliasobject.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -753,15 +753,15 @@ static PyObject *
753753
ga_instancecheck(PyObject *self, PyObject *Py_UNUSED(ignored))
754754
{
755755
PyErr_SetString(PyExc_TypeError,
756-
"isinstance() argument 2 cannot be a parameterized generic");
756+
"isinstance() argument 2 cannot be an argumentized generic type");
757757
return NULL;
758758
}
759759

760760
static PyObject *
761761
ga_subclasscheck(PyObject *self, PyObject *Py_UNUSED(ignored))
762762
{
763763
PyErr_SetString(PyExc_TypeError,
764-
"issubclass() argument 2 cannot be a parameterized generic");
764+
"issubclass() argument 2 cannot be an argumentized generic type");
765765
return NULL;
766766
}
767767

0 commit comments

Comments
 (0)