We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5679343 commit 157a913Copy full SHA for 157a913
3 files changed
fastapi_cache/coder.py
@@ -97,7 +97,7 @@ def decode_as_type(cls, value: bytes, *, type_: Optional[_T]) -> Union[_T, Any]:
97
98
class JsonCoder(Coder):
99
@classmethod
100
- def encode(cls, value: Any) -> bytes:
+ def encode(cls, value: Any) -> Any:
101
if isinstance(value, JSONResponse):
102
return value.body
103
return json.dumps(value, cls=JsonEncoder).encode()
0 commit comments