MCPcopy Create free account
hub / github.com/StackStorm/st2 / _construct_template

Method _construct_template

st2client/st2client/utils/interactive.py:193–199  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

191 super(IntegerReader, IntegerReader).validate(input, spec)
192
193 def _construct_template(self):
194 self.template = "{0} (integer)"
195
196 if "default" in self.spec:
197 self.template += " [{default}]: ".format(default=self.spec.get("default"))
198 else:
199 self.template += ": "
200
201 def _transform_response(self, response):
202 return int(response)

Callers

nothing calls this directly

Calls 2

formatMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected