Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/tortoise/tortoise-orm
/ default
Method
default
tests/testmodels.py:379–382 ·
view source on GitHub ↗
(self, obj: Any)
Source
from the content-addressed store, hash-verified
377
378
class
IndexEncoder(DecimalEncoder):
379
def
default(self, obj: Any) -> Any:
380
if
isinstance(obj, Index):
381
return
obj.describe()
382
return
super().default(obj)
383
384
385
class
JSONFields(Model):
Callers
1
default
Method · 0.45
Calls
1
describe
Method · 0.45
Tested by
no test coverage detected