AutoPEP8 (removed extra whitespaces)
This commit is contained in:
parent
1d9fa011a3
commit
2a2175e31a
7 changed files with 7 additions and 5 deletions
|
@ -17,7 +17,7 @@ class Paths(abc.ABC):
|
|||
"""
|
||||
|
||||
self.app = app
|
||||
|
||||
|
||||
@abc.abstractmethod
|
||||
def add_paths(self) -> None:
|
||||
"""Add paths to the FastAPI application"""
|
||||
|
|
|
@ -23,7 +23,7 @@ class ErrorsPaths(Paths):
|
|||
# For each HTTP code specified above
|
||||
for code in codes:
|
||||
self.add_handler(code)
|
||||
|
||||
|
||||
def add_handler(self, code: int) -> None:
|
||||
"""Adds an error handler to FastAPI app.
|
||||
Only for internal use!
|
||||
|
|
|
@ -51,7 +51,7 @@ class TablePaths(Paths):
|
|||
|
||||
if form.pswd.data != '1234':
|
||||
return respond.with_text('Incorrect password')
|
||||
|
||||
|
||||
crud.create_user(
|
||||
db=db_s,
|
||||
user=schemas.UserCreate(
|
||||
|
|
Loading…
Add table
Reference in a new issue