MCPcopy Create free account
hub / github.com/pallets/flask / default

Function default

tests/test_json.py:228–232  ·  view source on GitHub ↗
(o)

Source from the content-addressed store, hash-verified

226 self.val = val
227
228 def default(o):
229 if isinstance(o, X):
230 return f"<{o.val}>"
231
232 return DefaultJSONProvider.default(o)
233
234 class CustomProvider(DefaultJSONProvider):
235 def object_hook(self, obj):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected