mirror of
https://github.com/astral-sh/ruff.git
synced 2026-11-26 06:15:39 +08:00
432 B
432 B
What it does
Checks for classes with an inconsistent method resolution order (MRO).
Why is this bad?
Classes with an inconsistent MRO will raise a TypeError at runtime.
Examples
class A: ...
class B(A): ...
# TypeError: Cannot create a consistent method resolution order
class C(A, B): ... # error