get_argument_infos
- app.util.helpers.generics.get_argument_infos(cls: GenericAlias, *, fail: bool = True, args: Sequence[ArgType] | None = None) Mapping[str, ArgumentInfo] [source]
Return a cached mapping of parameter names to
ArgumentInfo
for cls.Results are cached via
functools.lru_cache()
withLRU_CACHE_MAXSIZE
so repeated argument inspections stay inexpensive.- Raises:
GenericsError – If cls is not generic or any parameter cannot be resolved.
- Parameters:
- Return type: