MCPcopy Create free account
hub / github.com/Sygil-Dev/sygil-webui / default

Method default

scripts/hydrus_api/__init__.py:159–164  ·  view source on GitHub ↗
(self, object_: T.Any)

Source from the content-addressed store, hash-verified

157# are either lists or dicts, so Python's json module can handle them
158class JSONEncoder(json.JSONEncoder):
159 def default(self, object_: T.Any):
160 if isinstance(object_, abc.Mapping):
161 return dict(object_)
162 if isinstance(object_, abc.Iterable):
163 return list(object_)
164 return super().default(object_)
165
166
167class Client:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected