MCPcopy Create free account
hub / github.com/MotrixLab/AiOS / __str__

Method __str__

detrsmpl/utils/util_mixins.py:96–104  ·  view source on GitHub ↗

str: the string of the module

(self)

Source from the content-addressed store, hash-verified

94 return object.__repr__(self)
95
96 def __str__(self):
97 """str: the string of the module"""
98 try:
99 classname = self.__class__.__name__
100 nice = self.__nice__()
101 return f'<{classname}({nice})>'
102 except NotImplementedError as ex:
103 warnings.warn(str(ex), category=RuntimeWarning)
104 return object.__repr__(self)

Callers 1

prepare_output_pathFunction · 0.45

Calls 2

__nice__Method · 0.95
__repr__Method · 0.45

Tested by

no test coverage detected