MCPcopy
hub / github.com/faust-streaming/faust / MapOfDecimal

Class MapOfDecimal

tests/functional/test_models.py:280–281  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

278 numbers: Set[Decimal]
279
280 class MapOfDecimal(Record, coerce=True, serializer="json"):
281 numbers: Mapping[str, Decimal]
282
283 n1 = Decimal("1.31341324")
284 assert IsDecimal.loads(IsDecimal(number=n1).dumps()).number == n1

Callers 2

test_decimalsFunction · 0.85
test_decimals_compatFunction · 0.85

Calls

no outgoing calls

Tested by 2

test_decimalsFunction · 0.68
test_decimals_compatFunction · 0.68