Skip to content

Commit 5263d3c

Browse files
isra17ilevkivskyi
authored andcommitted
Add type to Session begin and begin_nested (#108)
1 parent 2347b89 commit 5263d3c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sqlalchemy-stubs/orm/session.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ class Session(_SessionClassMethods):
4242
connection_callable: Any = ...
4343
@property
4444
def info(self): ...
45-
def begin(self, subtransactions: bool = ..., nested: bool = ...): ...
46-
def begin_nested(self): ...
45+
def begin(self, subtransactions: bool = ..., nested: bool = ...) -> SessionTransaction: ...
46+
def begin_nested(self) -> SessionTransaction: ...
4747
def rollback(self): ...
4848
def commit(self): ...
4949
def prepare(self): ...

0 commit comments

Comments
 (0)