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