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
isTrue
or if any declared parameter is not aTypeVar
.- Parameters:
- Return type:
Generator[ParameterInfo, None, None]