Skip to content

Commit f57cc82

Browse files
chore: fix mypy linting for websockets (#828)
1 parent bb9b09f commit f57cc82

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

playwright/_impl/_transport.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424

2525
import websockets
2626
from pyee import AsyncIOEventEmitter
27+
from websockets.client import connect as websocket_connect
2728

2829
from playwright._impl._api_types import Error
2930
from playwright._impl._helper import ParsedMessagePayload
@@ -185,7 +186,7 @@ async def wait_until_stopped(self) -> None:
185186

186187
async def run(self) -> None:
187188
try:
188-
self._connection = await websockets.connect(
189+
self._connection = await websocket_connect(
189190
self.ws_endpoint, extra_headers=self.headers
190191
)
191192
except Exception as exc:

0 commit comments

Comments
 (0)