iter_parent_argument_infos

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

Yield argument bindings for param across the inheritance chain to parent.

Raises:

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

Parameters:
  • cls (type | GenericAlias)

  • parent (type)

  • param (ParamType)

  • fail (bool)

Return type:

Generator[ArgumentInfo, None, None]