Skip to content

Commit

Permalink
Fix mypy on test_websockets (#1889)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kludex authored Mar 6, 2023
1 parent 4a5f3dd commit bb1b50f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/protocols/test_websocket.py
Original file line number Diff line number Diff line change
Expand Up @@ -1125,7 +1125,7 @@ async def websocket_connect(self, message):
await self.send({"type": "websocket.accept"})

async def open_connection(url):
async with websockets.connect(url) as websocket:
async with websockets.client.connect(url) as websocket:
return websocket.open

async def app_wrapper(scope, receive, send):
Expand Down

0 comments on commit bb1b50f

Please sign in to comment.