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
| Name | Type | Required | |
|---|---|---|---|
cls | type[Any] | The class where the MRO will be picked. | |
stop_by | Callable[[type[Any]], bool] | None | An optional stop indicator. If this function returns True, it means that the class is detected to be a stopper. |
Returns
| Name | Type | |
|---|---|---|
v_1 | list[type[Any]] | The MRO list of cls. |