Skip to content

Commit 726f869

Browse files
committed
[abc] better error message for undefined abstractmethod
1 parent 6d0a019 commit 726f869

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Objects/typeobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4887,7 +4887,7 @@ object_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
48874887

48884888
PyErr_Format(PyExc_TypeError,
48894889
"Can't instantiate abstract class %s "
4890-
"without an implementation for abstract method%s %U",
4890+
"without an implementation for abstract method%s '%U'",
48914891
type->tp_name,
48924892
method_count > 1 ? "s" : "",
48934893
joined);

0 commit comments

Comments
 (0)