MCPcopy Create free account
hub / github.com/Flagsmith/flagsmith / _map_value_to_document_value

Function _map_value_to_document_value

api/util/mappers/dynamodb.py:254–262  ·  view source on GitHub ↗
(value: Any)

Source from the content-addressed store, hash-verified

252
253
254def _map_value_to_document_value(value: Any) -> DocumentValue:
255 for base in value.__class__.__mro__[:-1]:
256 try:
257 encoder = DOCUMENT_VALUE_ENCODERS_BY_TYPE[base]
258 except KeyError:
259 continue
260 return encoder(value)
261 else:
262 return str(value)

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…