get_concrete_parent_argument_origin

app.util.helpers.generics.get_concrete_parent_argument_origin(cls: type | GenericAlias, parent: type | Iterable[type], param: ParamType, **kwargs: Unpack[GetConcreteParentArgumentKwargs]) type[source]

Return the origin type for the concrete argument resolved from parent.

If parent is an iterable of types, check each in order until one is found that specialises param.

Raises:

GenericsError – If param cannot be resolved to a concrete type.

Parameters:
Return type:

type