Skip to content

Commit b145b32

Browse files
authored
Add Session annotation for sessionmaker call (#8257)
1 parent fbddd2c commit b145b32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stubs/SQLAlchemy/sqlalchemy/orm/session.pyi

+1-1
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ class sessionmaker(_SessionClassMethods):
214214
**kw,
215215
) -> None: ...
216216
def begin(self): ...
217-
def __call__(self, **local_kw): ...
217+
def __call__(self, **local_kw) -> Session: ...
218218
def configure(self, **new_kw) -> None: ...
219219

220220
def close_all_sessions() -> None: ...

0 commit comments

Comments
 (0)