Skip to content

Commit 6298177

Browse files
committed
fix: improve typing
1 parent 2ee4ad0 commit 6298177

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/db/deps.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def __init__(self, query_cls: type[TQuery] | None = None) -> None:
1919
self.query_cls = query_cls
2020

2121
def __call__(self) -> Generator[GenericSession[TQuery], Any, None]:
22-
session = GenericSession(bind=ENGINE, query_cls=self.query_cls)
22+
session: GenericSession[TQuery] = GenericSession(bind=ENGINE, query_cls=self.query_cls)
2323

2424
try:
2525
yield session

0 commit comments

Comments
 (0)