File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff 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
58375837The Python runtime does not enforce :term: `type annotations <annotation> `.
58385838This 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
60926092The user-exposed type for the union object can be accessed from
60936093:class: `typing.Union ` and used for :func: `isinstance ` checks::
Original file line number Diff line number Diff line change @@ -753,15 +753,15 @@ static PyObject *
753753ga_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
760760static PyObject *
761761ga_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
You can’t perform that action at this time.
0 commit comments