Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
30
def
_as(discriminator: str, v: Any) -> dict[str, Any]:
31
return
{
"__type__"
: discriminator,
"__value__"
: v}
32
33
34
def
dumps(obj, _dumps=json.dumps, cls=JSONEncoder, default_kwargs=None, **kwargs):
Callers
2
default
Method · 0.85
dumps
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected