get_parameter_infos

app.util.helpers.generics.get_parameter_infos(cls: type | GenericAlias, *, fail: bool = True) Mapping[str, ParameterInfo][source]

Return a mapping of parameter names to ParameterInfo for cls.

Results are cached via functools.lru_cache() with LRU_CACHE_MAXSIZE to avoid recomputing metadata for repeated lookups.

Raises:

GenericsError – Propagated from iter_parameter_infos() when cls is not generic or has invalid parameter declarations.

Parameters:
Return type:

Mapping[str, ParameterInfo]