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.
ImportError
BaseExceptionGroup_repr()
1 parent 624f6e4 commit 5cc8afdCopy full SHA for 5cc8afd
1 file changed
Objects/exceptions.c
@@ -897,9 +897,8 @@ BaseExceptionGroup_str(PyBaseExceptionGroupObject *self)
897
}
898
899
static PyObject *
900
-BaseExceptionGroup_repr(PyObject *op)
+BaseExceptionGroup_repr(PyBaseExceptionGroupObject *self)
901
{
902
- PyBaseExceptionGroupObject *self = PyBaseExceptionGroupObject_CAST(op);
903
assert(self->msg);
904
905
PyObject *exceptions_str = NULL;
@@ -1736,7 +1735,7 @@ static PyMethodDef ImportError_methods[] = {
1736
1735
ComplexExtendsException(PyExc_Exception, ImportError,
1737
ImportError, 0 /* new */,
1738
ImportError_methods, ImportError_members,
1739
- 0 /* getset */, ImportError_str,
+ 0 /* getset */, ImportError_str, 0,
1740
"Import can't find module, or can't find name in "
1741
"module.");
1742
0 commit comments