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

Method __str__

util/utils.py:377–385  ·  view source on GitHub ↗

str: the string of the module

(self)

Source from the content-addressed store, hash-verified

375 return object.__repr__(self)
376
377 def __str__(self):
378 """str: the string of the module"""
379 try:
380 classname = self.__class__.__name__
381 nice = self.__nice__()
382 return f'<{classname}({nice})>'
383 except NotImplementedError as ex:
384 warnings.warn(str(ex), category=RuntimeWarning)
385 return object.__repr__(self)
386
387
388def ensure_rng(rng=None):

Callers

nothing calls this directly

Calls 2

__nice__Method · 0.95
__repr__Method · 0.45

Tested by

no test coverage detected