MCPcopy Index your code
hub / github.com/python/cpython / _paramspec_subst

Function _paramspec_subst

Lib/typing.py:1135–1141  ·  view source on GitHub ↗
(self, arg)

Source from the content-addressed store, hash-verified

1133
1134
1135def _paramspec_subst(self, arg):
1136 if isinstance(arg, (list, tuple)):
1137 arg = tuple(_type_check(a, "Expected a type.") for a in arg)
1138 elif not _is_param_expr(arg):
1139 raise TypeError(f"Expected a list of types, an ellipsis, "
1140 f"ParamSpec, or Concatenate. Got {arg}")
1141 return arg
1142
1143
1144def _paramspec_prepare_subst(self, alias, args):

Callers

nothing calls this directly

Calls 2

_type_checkFunction · 0.85
_is_param_exprFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…