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

Method default

st2common/st2common/fields.py:472–475  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

470 # If this turns out to be not true or it adds more overhead in other scenarios, we should
471 # revisit this decision and only use "default" argument where needed (aka Workflow models).
472 def default(obj):
473 if isinstance(obj, set):
474 return list(obj)
475 raise TypeError
476
477 if not self.use_header:
478 return orjson.dumps(value, default=default)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected