mirror of
https://github.com/long2ice/fastapi-cache.git
synced 2026-03-24 20:47:54 +00:00
chore: update deps
This commit is contained in:
@@ -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()
|
||||
|
||||
2699
poetry.lock
generated
2699
poetry.lock
generated
File diff suppressed because one or more lines are too long
@@ -18,12 +18,12 @@ include = ["LICENSE", "README.md"]
|
||||
python = "^3.8"
|
||||
fastapi = "*"
|
||||
uvicorn = "*"
|
||||
redis = { version = "^4.2.0rc1", optional = true }
|
||||
typing-extensions = { version = ">=4.1.0" }
|
||||
importlib-metadata = { version = "^6.6.0", python = "<3.8" }
|
||||
pendulum = "^3.0.0"
|
||||
aiomcache = { version = "^0.8.2", optional = true }
|
||||
aiobotocore = {version = "^2.13.1", optional = true}
|
||||
redis = {version = "^5.0.8", extras = ["redis"]}
|
||||
|
||||
[tool.poetry.group.linting]
|
||||
optional = true
|
||||
|
||||
Reference in New Issue
Block a user