Skip to content

Commit 1960ad9

Browse files
committed
Sort for fixed messages order
1 parent d9147e0 commit 1960ad9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mypy/checker.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2750,7 +2750,8 @@ def check_multiple_inheritance(self, typ: TypeInfo) -> None:
27502750
for i, base in enumerate(bases):
27512751
# Attributes defined in both the type and base are skipped.
27522752
# Normal checks for attribute compatibility should catch any problems elsewhere.
2753-
non_overridden_attrs = all_names[i] - typ.names.keys()
2753+
# Sort for consistent messages order.
2754+
non_overridden_attrs = sorted(all_names[i] - typ.names.keys())
27542755
for name in non_overridden_attrs:
27552756
if is_private(name):
27562757
continue

0 commit comments

Comments
 (0)