MCPcopy Create free account
hub / github.com/ahalev/python-microgrid / __repr__

Method __repr__

src/pymgrid/modules/module_container.py:325–329  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

323 return sum(len(v) for k, v in self.containers.items())
324
325 def __repr__(self):
326 try:
327 return json.dumps(self.to_dict(), indent=2, default=str)
328 except TypeError:
329 return super().__repr__()
330
331 def __dir__(self):
332 rv = set(super().__dir__())

Callers

nothing calls this directly

Calls 1

to_dictMethod · 0.95

Tested by

no test coverage detected