@@ -290,7 +290,7 @@ class SessionTransaction:
290290 def __enter__ (self : _TSessionTransaction ) -> _TSessionTransaction : ...
291291 def __exit__ (self , type_ : Any , value : Any , traceback : Any ) -> None : ...
292292
293- class _SessionNoIoTypingCommon :
293+ class _SessionNoIoTypingCommon ( Generic [ _T ]) :
294294 @property
295295 def dirty (self ) -> util .IdentitySet [Any ]: ...
296296 @property
@@ -321,15 +321,17 @@ class _SessionNoIoTypingCommon:
321321 self ,
322322 mapper : Optional [Any ] = ...,
323323 clause : Optional [ClauseElement ] = ...,
324- bind : Optional [Union [ Connection , Engine ] ] = ...,
324+ bind : Optional [_T ] = ...,
325325 _sa_skip_events : Optional [Any ] = ...,
326326 _sa_skip_for_implicit_returning : bool = ...,
327- ) -> Union [ Connection , Engine ] : ...
327+ ) -> _T : ...
328328 def is_modified (
329329 self , instance : Any , include_collections : bool = ...
330330 ) -> bool : ...
331331
332- class _SessionTypingCommon (_SessionNoIoTypingCommon ):
332+ class _SessionTypingCommon (
333+ _SessionNoIoTypingCommon [Union [Connection , Engine ]]
334+ ):
333335 bind : Optional [Union [Connection , Engine ]]
334336 autocommit : bool
335337 def begin (
0 commit comments