comment here
This commit is contained in:
11
.CondaPkg/env/lib/python3.11/site-packages/jsons/serializers/default_decimal.py
vendored
Normal file
11
.CondaPkg/env/lib/python3.11/site-packages/jsons/serializers/default_decimal.py
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
from decimal import Decimal
|
||||
|
||||
|
||||
def default_decimal_serializer(obj: Decimal, **kwargs) -> str:
|
||||
"""
|
||||
Serialize a Decimal.
|
||||
:param obj: an instance of a Decimal.
|
||||
:param kwargs: any keyword arguments.
|
||||
:return: ``obj`` serialized as a string.
|
||||
"""
|
||||
return str(obj)
|
||||
Reference in New Issue
Block a user