Skip to content

Commit 75c8c82

Browse files
committed
Change the typing of session from Session to AsyncSession
1 parent 3e44001 commit 75c8c82

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

app/user/repositories/__init__.py

Whitespace-only changes.

core/db/session.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def get_bind(self, mapper=None, clause=None, **kw):
4444
async_session_factory = sessionmaker(
4545
class_=AsyncSession, sync_session_class=RoutingSession,
4646
)
47-
session: Union[Session, async_scoped_session] = async_scoped_session(
47+
session: Union[AsyncSession, async_scoped_session] = async_scoped_session(
4848
session_factory=async_session_factory,
4949
scopefunc=get_session_context,
5050
)

0 commit comments

Comments
 (0)