get_bases_between

app.util.helpers.generics.get_bases_between(cls: type | GenericAlias, parent: type) list[type | GenericAlias][source]

Return the inheritance chain between cls and parent, inclusive.

Raises:

GenericsError – If cls is not a subclass of parent or the chain includes non-generic components that cannot be inspected.

Parameters:
  • cls (type | GenericAlias)

  • parent (type)

Return type:

list[type | GenericAlias]