From b145b32aa988bcb0c85ece32ce64df521fcafafb Mon Sep 17 00:00:00 2001 From: Andrey Date: Fri, 8 Jul 2022 12:31:36 +0300 Subject: [PATCH] Add Session annotation for sessionmaker call (#8257) --- stubs/SQLAlchemy/sqlalchemy/orm/session.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stubs/SQLAlchemy/sqlalchemy/orm/session.pyi b/stubs/SQLAlchemy/sqlalchemy/orm/session.pyi index 576b7b89bd8f..8f9d7b09b7eb 100644 --- a/stubs/SQLAlchemy/sqlalchemy/orm/session.pyi +++ b/stubs/SQLAlchemy/sqlalchemy/orm/session.pyi @@ -214,7 +214,7 @@ class sessionmaker(_SessionClassMethods): **kw, ) -> None: ... def begin(self): ... - def __call__(self, **local_kw): ... + def __call__(self, **local_kw) -> Session: ... def configure(self, **new_kw) -> None: ... def close_all_sessions() -> None: ...