MCPcopy Create free account
hub / github.com/MagicStack/asyncpg / _decoder

Method _decoder

tests/test_codecs.py:1471–1472  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

1469 return json.dumps(value).encode('utf-8')
1470
1471 def _decoder(value):
1472 return json.loads(value.decode('utf-8'))
1473
1474 await conn.set_type_codec(
1475 'json', encoder=_encoder, decoder=_decoder,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected