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

Method is_positional

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

Source from the content-addressed store, hash-verified

2482 ARG_NAMED_OPT = 5
2483
2484 def is_positional(self, star: bool = False) -> bool:
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)

Callers 15

check_overrideMethod · 0.80
check_argument_countMethod · 0.80
from_funcitemMethod · 0.80
argument_by_positionMethod · 0.80
argument_by_positionMethod · 0.80
visit_param_specMethod · 0.80
pretty_callableFunction · 0.80

Calls

no outgoing calls

Tested by 2

from_funcitemMethod · 0.64