MCPcopy
hub / github.com/jazzband/django-constance / _as

Function _as

constance/codecs.py:30–31  ·  view source on GitHub ↗
(discriminator: str, v: Any)

Source from the content-addressed store, hash-verified

28
29
30def _as(discriminator: str, v: Any) -> dict[str, Any]:
31 return {"__type__": discriminator, "__value__": v}
32
33
34def dumps(obj, _dumps=json.dumps, cls=JSONEncoder, default_kwargs=None, **kwargs):

Callers 2

defaultMethod · 0.85
dumpsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected