MCPcopy Index your code
hub / github.com/1Panel-dev/MaxKB / __str__

Method __str__

apps/knowledge/models/knowledge.py:83–87  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

81 return Status(status)
82
83 def __str__(self):
84 result = []
85 for _type in sorted(self.type_cls, key=lambda item: item.value, reverse=True):
86 result.insert(len(self.type_cls) - _type.value, self.task_status[_type].value)
87 return "".join(result)
88
89 def __setitem__(self, key, value):
90 self.task_status[key] = value

Calls 1

insertMethod · 0.45

Tested by

no test coverage detected