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

Method kw_arg

mypy/types.py:2287–2292  ·  view source on GitHub ↗

The formal argument for **kwargs.

(self)

Source from the content-addressed store, hash-verified

2285 return None
2286
2287 def kw_arg(self) -> FormalArgument | None:
2288 """The formal argument for **kwargs."""
2289 for position, (type, kind) in enumerate(zip(self.arg_types, self.arg_kinds)):
2290 if kind == ARG_STAR2:
2291 return FormalArgument(None, position, type, False)
2292 return None
2293
2294 @property
2295 def is_var_arg(self) -> bool:

Callers 1

Calls 3

enumerateFunction · 0.85
zipFunction · 0.85
FormalArgumentClass · 0.85

Tested by

no test coverage detected