Skip to content

Commit

Permalink
chore: update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
long2ice committed Sep 19, 2024
1 parent 5679343 commit 157a913
Show file tree
Hide file tree
Showing 3 changed files with 1,182 additions and 1,521 deletions.
2 changes: 1 addition & 1 deletion fastapi_cache/coder.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def decode_as_type(cls, value: bytes, *, type_: Optional[_T]) -> Union[_T, Any]:

class JsonCoder(Coder):
@classmethod
def encode(cls, value: Any) -> bytes:
def encode(cls, value: Any) -> Any:
if isinstance(value, JSONResponse):
return value.body
return json.dumps(value, cls=JsonEncoder).encode()
Expand Down
Loading

0 comments on commit 157a913

Please sign in to comment.