Runtime Utility Functions
types.resolve_bases()
Replace non-type base entries that provide __mro_entries__ with the classes returned by that hook. Leaves ordinary classes and entries without the hook unchanged. It does not validate the final inheritance hierarchy.
Formal Syntax & Structure
python syntaxpython
types.resolve_bases(bases,)Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| bases | tuple | Original base class entries. |
Return Value
tuple
The tuple result described above.
Working Example
Example Snippetpython
import typesprint(types.resolve_bases((list[int],)))