Skip to content

Commit a4ad5cd

Browse files
committed
Fix mro invoking
1 parent 15bd486 commit a4ad5cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mypy/stubgenc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ def generate_c_type_stub(module: ModuleType,
352352
if attr not in done:
353353
static_properties.append('%s: ClassVar[%s] = ...' % (
354354
attr, strip_or_import(get_type_fullname(type(value)), module, imports)))
355-
all_bases = obj.mro()
355+
all_bases = type.mro(obj)
356356
if all_bases[-1] is object:
357357
# TODO: Is this always object?
358358
del all_bases[-1]

0 commit comments

Comments
 (0)