MCPcopy Index your code
hub / github.com/pyinvoke/invoke / casts_by_default

Method casts_by_default

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

Source from the content-addressed store, hash-verified

194
195 class set_value:
196 def casts_by_default(self):
197 a = Argument("a", kind=int)
198 a.set_value("5")
199 assert a.value == 5
200
201 def allows_setting_value_without_casting(self):
202 a = Argument("a", kind=int)

Callers

nothing calls this directly

Calls 2

set_valueMethod · 0.95
ArgumentClass · 0.90

Tested by

no test coverage detected