mirror of
https://github.com/long2ice/fastapi-cache.git
synced 2026-03-25 04:57:54 +00:00
@@ -52,7 +52,7 @@ def object_hook(obj: Any) -> Any:
|
|||||||
if _spec_type in CONVERTERS:
|
if _spec_type in CONVERTERS:
|
||||||
return CONVERTERS[_spec_type](obj["val"])
|
return CONVERTERS[_spec_type](obj["val"])
|
||||||
else:
|
else:
|
||||||
raise TypeError("Unknown {}".format(_spec_type))
|
raise TypeError(f"Unknown {_spec_type}")
|
||||||
|
|
||||||
|
|
||||||
class Coder:
|
class Coder:
|
||||||
|
|||||||
@@ -86,6 +86,7 @@ select = [
|
|||||||
"F", # pyflakes
|
"F", # pyflakes
|
||||||
"I", # isort
|
"I", # isort
|
||||||
"W", # pycodestyle warnings
|
"W", # pycodestyle warnings
|
||||||
|
"UP", # pyupgrade
|
||||||
]
|
]
|
||||||
target-version = "py37"
|
target-version = "py37"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user