MCPcopy Index your code
hub / github.com/python/cpython / is_optional

Method is_optional

Tools/clinic/libclinic/function.py:235–236  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

233 return self.is_vararg() or self.is_var_keyword()
234
235 def is_optional(self) -> bool:
236 return not self.is_vararg() and (self.default is not unspecified)
237
238 def copy(
239 self,

Callers 7

__init__Method · 0.45
use_meth_oMethod · 0.45
init_limited_capiMethod · 0.45
parse_pos_onlyMethod · 0.45
parse_generalMethod · 0.45
deprecate_keyword_useMethod · 0.45

Calls 1

is_varargMethod · 0.95

Tested by

no test coverage detected