🎨 Remove unused f-string (#1526)

This commit is contained in:
kota matsuoka authored and GitHub committed 2020-06-13 00:56:00 +02:00
1 parent 5cbcb9a965
commit a0ab47e89e
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -294,7 +294,7 @@ def get_dependant(
if param_name in path_param_names:
assert is_scalar_field(
field=param_field
), f"Path params must be of one of the supported types"
), "Path params must be of one of the supported types"
if isinstance(param.default, params.Path):
ignore_default = False
else:
+1 -1
View File
@@ -365,7 +365,7 @@ class APIRoute(routing.Route):
self.include_in_schema = include_in_schema
self.response_class = response_class
assert callable(endpoint), f"An endpoint must be a callable"
assert callable(endpoint), "An endpoint must be a callable"
self.dependant = get_dependant(path=self.path_format, call=self.endpoint)
for depends in self.dependencies[::-1]:
self.dependant.dependencies.insert(