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

Method is_required

mypy/nodes.py:2490–2491  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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
2492
2493 def is_optional(self) -> bool:
2494 return self == ARG_OPT or self == ARG_NAMED_OPT

Callers 9

visit_decorator_innerMethod · 0.80
check_argument_countMethod · 0.80
formal_argumentsMethod · 0.80
argument_by_nameMethod · 0.80
formal_argumentsMethod · 0.80
argument_by_nameMethod · 0.80
func_helperMethod · 0.80

Calls

no outgoing calls

Tested by 1