Runtime Data Attributes

type.__mro__

Stored method resolution order, used for class attribute lookup. Unlike calling mro(), this is the already-computed tuple.

Formal Syntax & Structure

python syntaxpython
Cls.__mro__

Return Value

tuple[type, ...]

Value exposed by this attribute; availability and mutability depend on the owner as described.

Working Example

Example Snippetpython
class A: passclass B(A): passprint(tuple(t.__name__ for t in B.__mro__))
Python Reference