We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f94a36 commit 3da2797Copy full SHA for 3da2797
Objects/descrobject.c
@@ -2098,15 +2098,15 @@ static PyObject *
2098
ga_instancecheck(PyObject *self, PyObject *Py_UNUSED(ignored))
2099
{
2100
return PyErr_Format(PyExc_TypeError,
2101
- "TypeError: Subscripted generics cannot be used with class and instance checks",
+ "isinstance() argument 2 cannot be a parameterized generic",
2102
self);
2103
}
2104
2105
static PyObject *
2106
ga_subclasscheck(PyObject *self, PyObject *Py_UNUSED(ignored))
2107
2108
2109
+ "issubclass() argument 2 cannot be a parameterized generic",
2110
2111
2112
0 commit comments