MCPcopy Create free account
hub / github.com/python/mypy / optional

Method optional

mypyc/ir/func_ir.py:51–52  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

49
50 @property
51 def optional(self) -> bool:
52 return self.kind.is_optional()
53
54 def __repr__(self) -> str:
55 return "RuntimeArg(name={}, type={}, optional={!r}, pos_only={!r})".format(

Callers

nothing calls this directly

Calls 1

is_optionalMethod · 0.45

Tested by

no test coverage detected