Skip to main content

get_mro

FunctionSource

v_1: list[type[Any]] = get_mro(cls: type[Any], stop_by: Callable[[type[Any]], bool] | None)

Get the mro of a class.

Arguments

Requires

NameTypeRequired
Description
clstype[Any]The class where the MRO will be picked.
stop_byCallable[[type[Any]], bool] | NoneAn optional stop indicator. If this function returns True, it means that the class is detected to be a stopper.

Returns

NameType
Description
v_1list[type[Any]]The MRO list of cls.