MCPcopy Create free account
hub / github.com/pyinvoke/invoke / shows_optionalness

Method shows_optionalness

tests/parser_argument.py:52–54  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

50 assert repr(arg) == "<Argument: name *>"
51
52 def shows_optionalness(self):
53 arg = Argument("name", optional=True)
54 assert repr(arg) == "<Argument: name ?>"
55
56 def positionalness_and_optionalness_stick_together(self):
57 # TODO: but do these even make sense on the same argument? For now,

Callers

nothing calls this directly

Calls 2

ArgumentClass · 0.90
reprClass · 0.85

Tested by

no test coverage detected