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

Method __str__

st2common/st2common/models/api/base.py:54–58  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

52 return "%s(**{%s})" % (name, attrs)
53
54 def __str__(self):
55 name = type(self).__name__
56 attrs = ", ".join("%s=%r" % item for item in six.iteritems(vars(self)))
57
58 return "%s[%s]" % (name, attrs)
59
60 def __json__(self):
61 return vars(self)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected