mirror of
https://github.com/long2ice/fastapi-cache.git
synced 2026-03-24 20:47:54 +00:00
Add pyupgrade linter
This ensures we use the best syntax for the minimal Python version used. The linter found one issue, fixed with the auto-fixer.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user