🎨 Remove unused f-string (#1526)

This commit is contained in:
kota matsuoka 2020-06-13 07:56:00 +09:00 committed by GitHub
parent 5cbcb9a965
commit a0ab47e89e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

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:

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(