itermro
Returns an iterator over the method resolution order (MRO) of a class, stopping when a class in the specified stop set is encountered.
def itermro(
cls: type,
stop: container
) - > iterator
Iterates through the method resolution order (MRO) of a class until a specified stop condition is met.
Parameters
| Name | Type | Description |
|---|---|---|
| cls | type | The class whose method resolution order is to be traversed. |
| stop | container | A collection of classes that, when encountered in the MRO, will terminate the iteration. |
Returns
| Type | Description |
|---|---|
iterator | An iterator yielding classes in the MRO up to, but not including, the first class found in the stop collection. |