11from _typeshed import Incomplete
2+ from types import TracebackType
23from typing import Any
34
45from .base import ProxyComparable , StartableContext
@@ -39,7 +40,9 @@ class AsyncConnection(ProxyComparable, StartableContext, AsyncConnectable):
3940 async def stream_scalars (self , statement , parameters : Incomplete | None = ..., execution_options = ...): ...
4041 async def run_sync (self , fn , * arg , ** kw ): ...
4142 def __await__ (self ): ...
42- async def __aexit__ (self , type_ , value , traceback ) -> None : ...
43+ async def __aexit__ (
44+ self , type_ : type [BaseException ] | None , value : BaseException | None , traceback : TracebackType | None
45+ ) -> None : ...
4346 # proxied from Connection
4447 dialect : Any
4548 @property
@@ -55,7 +58,9 @@ class AsyncEngine(ProxyComparable, AsyncConnectable):
5558 def __init__ (self , conn ) -> None : ...
5659 transaction : Any
5760 async def start (self , is_ctxmanager : bool = ...): ...
58- async def __aexit__ (self , type_ , value , traceback ) -> None : ...
61+ async def __aexit__ (
62+ self , type_ : type [BaseException ] | None , value : BaseException | None , traceback : TracebackType | None
63+ ) -> None : ...
5964 sync_engine : Any
6065 def __init__ (self , sync_engine ) -> None : ...
6166 def begin (self ): ...
@@ -91,4 +96,6 @@ class AsyncTransaction(ProxyComparable, StartableContext):
9196 async def rollback (self ) -> None : ...
9297 async def commit (self ) -> None : ...
9398 async def start (self , is_ctxmanager : bool = ...): ...
94- async def __aexit__ (self , type_ , value , traceback ) -> None : ...
99+ async def __aexit__ (
100+ self , type_ : type [BaseException ] | None , value : BaseException | None , traceback : TracebackType | None
101+ ) -> None : ...
0 commit comments