get_parent_argument_infos

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

Return the cached sequence of argument bindings from cls to parent.

Results are cached via functools.lru_cache() with LRU_CACHE_MAXSIZE so the inheritance chain is walked only once per parameter combination.

Raises:

GenericsError – If fail and the inheritance chain or parameter cannot be resolved.

Parameters:
  • cls (type | GenericAlias)

  • parent (type)

  • param (ParamType)

  • fail (bool)

Return type:

Sequence[ArgumentInfo]