MCPcopy Index your code
hub / github.com/StackStorm/st2 / to_python

Method to_python

st2common/st2common/fields.py:391–397  ·  view source on GitHub ↗
(self, value)

Source from the content-addressed store, hash-verified

389 return data
390
391 def to_python(self, value):
392 if isinstance(value, dict):
393 # Already parsed
394 return value
395
396 data = self.parse_field_value(value)
397 return data
398
399 def validate(self, value):
400 value = self.to_mongo(value)

Callers 4

test_to_pythonMethod · 0.95
test_roundtripMethod · 0.95

Calls 1

parse_field_valueMethod · 0.95

Tested by 4

test_to_pythonMethod · 0.76
test_roundtripMethod · 0.76