iter_parameter_infos

app.util.helpers.generics.iter_parameter_infos(cls: type | GenericAlias, *, fail: bool = True) Generator[ParameterInfo, None, None][source]

Yield ParameterInfo entries for each generic parameter of cls.

Raises:

GenericsError – If cls is not generic and fail is True or if any declared parameter is not a TypeVar.

Parameters:
Return type:

Generator[ParameterInfo, None, None]