MCPcopy
hub / github.com/python/mypy / is_named

Method is_named

mypy/nodes.py:2487–2488  ·  view source on GitHub ↗
(self, star: bool = False)

Source from the content-addressed store, hash-verified

2485 return self == ARG_POS or self == ARG_OPT or (star and self == ARG_STAR)
2486
2487 def is_named(self, star: bool = False) -> bool:
2488 return self == ARG_NAMED or self == ARG_NAMED_OPT or (star and self == ARG_STAR2)
2489
2490 def is_required(self) -> bool:
2491 return self == ARG_POS or self == ARG_NAMED

Callers 15

map_actuals_to_formalsFunction · 0.80
check_overrideMethod · 0.80
check_argument_countMethod · 0.80
_get_func_argsMethod · 0.80
combine_arg_namesFunction · 0.80
from_funcitemMethod · 0.80
formal_argumentsMethod · 0.80
argument_by_nameMethod · 0.80
formal_argumentsMethod · 0.80
argument_by_nameMethod · 0.80

Calls

no outgoing calls

Tested by 2

from_funcitemMethod · 0.64