Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/tortoise/tortoise-orm
/ default
Method
default
tests/testmodels.py:368–371 ·
view source on GitHub ↗
(self, obj: Any)
Source
from the content-addressed store, hash-verified
366
367
class
DecimalEncoder(json.JSONEncoder):
368
def
default(self, obj: Any) -> Any:
369
if
isinstance(obj, Decimal):
370
return
str(obj)
371
return
super().default(obj)
372
373
@classmethod
374
def
dumps(cls, obj: Any) -> str:
Callers
nothing calls this directly
Calls
1
default
Method · 0.45
Tested by
no test coverage detected