Skip to content

Commit 92287d7

Browse files
authored
blackify (#10)
1 parent 02609f6 commit 92287d7

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

fastapi_sqlalchemy/exceptions.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def __init__(self):
1515

1616

1717
class SessionNotInitialisedError(Exception):
18-
"""Exception raised when the user tries to create a new database session without first initialised it."""
18+
"""Exception raised when the user tries to create a new DB session without first initialising it."""
1919

2020
def __init__(self):
2121
msg = """

fastapi_sqlalchemy/middleware.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,12 @@
1717

1818
class DBSessionMiddleware(BaseHTTPMiddleware):
1919
def __init__(
20-
self, app: ASGIApp, db_url: Optional[Union[str, URL]] = None, custom_engine: Optional[Engine] = None, engine_args: Dict = None, session_args: Dict = None,
20+
self,
21+
app: ASGIApp,
22+
db_url: Optional[Union[str, URL]] = None,
23+
custom_engine: Optional[Engine] = None,
24+
engine_args: Dict = None,
25+
session_args: Dict = None,
2126
):
2227
super().__init__(app)
2328
global _Session

0 commit comments

Comments
 (0)