Contents
Return the inheritance chain between cls and parent, inclusive.
If cls is not a subclass of parent, return None.
None
GenericsError – If cls is not a subclass of parent or the chain includes non-generic components that cannot be inspected.
cls (type | GenericAlias)
parent (type)
result (list[type | GenericAlias] | None)
list[type | GenericAlias] | None