mirror of https://github.com/tiangolo/fastapi.git
🎨 Remove unused f-string (#1526)
This commit is contained in:
parent
5cbcb9a965
commit
a0ab47e89e
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Reference in New Issue