File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -96,9 +96,9 @@ async def __aenter__(self: Self) -> Self:
96
96
97
97
async def __aexit__ (
98
98
self ,
99
- exc_type : Type [BaseException ],
100
- exc_val : BaseException ,
101
- traceback : TracebackType ,
99
+ exc_type : Optional [ Type [BaseException ] ],
100
+ exc_val : Optional [ BaseException ] ,
101
+ traceback : Optional [ TracebackType ] ,
102
102
) -> None :
103
103
await self .close ()
104
104
Original file line number Diff line number Diff line change @@ -142,9 +142,9 @@ def __enter__(self: Self) -> Self:
142
142
143
143
def __exit__ (
144
144
self ,
145
- exc_type : Type [BaseException ],
146
- exc_val : BaseException ,
147
- _traceback : TracebackType ,
145
+ exc_type : Optional [ Type [BaseException ] ],
146
+ exc_val : Optional [ BaseException ] ,
147
+ _traceback : Optional [ TracebackType ] ,
148
148
) -> None :
149
149
self .close ()
150
150
You can’t perform that action at this time.
0 commit comments