chore: update deps

This commit is contained in:
long2ice
2024-09-19 15:32:18 +08:00
parent 567934300b
commit 157a91359b
3 changed files with 1182 additions and 1521 deletions

View File

@@ -97,7 +97,7 @@ class Coder:
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()