Skip to content

Commit bd6c08f

Browse files
committed
Typing Session correctly
1 parent 32b02fc commit bd6c08f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/app/db.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def get_engine(url: str = settings.database_url) -> Engine:
1212
return engine
1313

1414

15-
def get_session() -> Generator[Session]:
15+
def get_session() -> Generator[Session, None, None]:
1616
with Session(get_engine()) as session:
1717
yield session
1818

0 commit comments

Comments
 (0)