MCPcopy Index your code
hub / github.com/python/mypy / paramspec_args

Function paramspec_args

mypy/semanal_shared.py:319–339  ·  view source on GitHub ↗
(
    name: str,
    fullname: str,
    id: TypeVarId,
    *,
    named_type_func: _NamedTypeCallback,
    line: int = -1,
    column: int = -1,
    prefix: Parameters | None = None,
)

Source from the content-addressed store, hash-verified

317
318
319def paramspec_args(
320 name: str,
321 fullname: str,
322 id: TypeVarId,
323 *,
324 named_type_func: _NamedTypeCallback,
325 line: int = -1,
326 column: int = -1,
327 prefix: Parameters | None = None,
328) -> ParamSpecType:
329 return ParamSpecType(
330 name,
331 fullname,
332 id,
333 flavor=ParamSpecFlavor.ARGS,
334 upper_bound=named_type_func("builtins.tuple", [named_type_func("builtins.object")]),
335 default=AnyType(TypeOfAny.from_omitted_generics),
336 line=line,
337 column=column,
338 prefix=prefix,
339 )
340
341
342def paramspec_kwargs(

Calls 2

ParamSpecTypeClass · 0.90
AnyTypeClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…