We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6157d89 commit 8cd9256Copy full SHA for 8cd9256
2 files changed
playwright/_impl/_async_base.py
@@ -96,9 +96,9 @@ async def __aenter__(self: Self) -> Self:
96
97
async def __aexit__(
98
self,
99
- exc_type: Type[BaseException],
100
- exc_val: BaseException,
101
- traceback: TracebackType,
+ exc_type: Optional[Type[BaseException]],
+ exc_val: Optional[BaseException],
+ traceback: Optional[TracebackType],
102
) -> None:
103
await self.close()
104
playwright/_impl/_sync_base.py
@@ -142,9 +142,9 @@ def __enter__(self: Self) -> Self:
142
143
def __exit__(
144
145
146
147
- _traceback: TracebackType,
+ _traceback: Optional[TracebackType],
148
149
self.close()
150
0 commit comments