get_parent_argument_info_or_none
- app.util.helpers.generics.get_parent_argument_info_or_none(cls: type | GenericAlias, parent: type | Iterable[type], param: ParamType, *, check_bounds: bool = True, fail: bool = False) ArgumentInfo | None [source]
Return the final
ArgumentInfo
for param inherited from parent if any.If parent is an iterable of types, check each in order until one is found that specialises param, if any.
- Raises:
GenericsError – If fail and the inheritance chain or requested parameter cannot be resolved.
- Parameters:
- Return type:
ArgumentInfo | None