Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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_o
Method · 0.45
init_limited_capi
Method · 0.45
parse_pos_only
Method · 0.45
parse_general
Method · 0.45
deprecate_keyword_use
Method · 0.45
format_docstring_signature
Method · 0.45
Calls
1
is_vararg
Method · 0.95
Tested by
no test coverage detected