]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commitdiff
🎨 Remove unused f-string (#1526)
authorkota matsuoka <kota11250910@gmail.com>
Fri, 12 Jun 2020 22:56:00 +0000 (07:56 +0900)
committerGitHub <noreply@github.com>
Fri, 12 Jun 2020 22:56:00 +0000 (00:56 +0200)
fastapi/dependencies/utils.py
fastapi/routing.py

index 3ff7d3356c0ab078a2b948cbe93824bbf5f651e4..5ad5d426926af05a3c5ae60377ac94b891bd5f03 100644 (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:
index dab751a09e9d66fb0eaf0a842bb43f86e312c681..71a2b4d04e52b067b3f642ce8a59e506460d8842 100644 (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(