get_argument_info

app.util.helpers.generics.get_argument_info(cls: GenericAlias, param: ParamType, *, check_bounds: bool = True, args: Sequence[ArgType] | None = None) ArgumentInfo[source]

Return the ArgumentInfo for param or fall back to the raw TypeVar.

Raises:

GenericsError – If param cannot be resolved on cls.

Parameters:
  • cls (GenericAlias)

  • param (ParamType)

  • check_bounds (bool)

  • args (Sequence[ArgType] | None)

Return type:

ArgumentInfo