get_parent_argument_info

app.util.helpers.generics.get_parent_argument_info(cls: type | GenericAlias, parent: type | Iterable[type], param: ParamType, *, check_bounds: bool = True) ArgumentInfo[source]

Return the resolved ArgumentInfo for param from parent.

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

Raises:

GenericsError – If the inheritance chain does not specialise param, or if param cannot be resolved.

Parameters:
Return type:

ArgumentInfo