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

Method var_arg

mypy/types.py:2280–2285  ·  view source on GitHub ↗

The formal argument for *args.

(self)

Source from the content-addressed store, hash-verified

2278 return cast(CT, modified)
2279
2280 def var_arg(self) -> FormalArgument | None:
2281 """The formal argument for *args."""
2282 for position, (type, kind) in enumerate(zip(self.arg_types, self.arg_kinds)):
2283 if kind == ARG_STAR:
2284 return FormalArgument(None, position, type, False)
2285 return None
2286
2287 def kw_arg(self) -> FormalArgument | None:
2288 """The formal argument for **kwargs."""

Calls 3

enumerateFunction · 0.85
zipFunction · 0.85
FormalArgumentClass · 0.85

Tested by

no test coverage detected