Skip to content

Commit

Permalink
Bump websockets from 12.0 to 14.2 (#677)
Browse files Browse the repository at this point in the history
* Bump websockets from 12.0 to 14.2

Bumps [websockets](https://github.com/python-websockets/websockets) from 12.0 to 14.2.
- [Release notes](https://github.com/python-websockets/websockets/releases)
- [Commits](python-websockets/websockets@12.0...14.2)

---
updated-dependencies:
- dependency-name: websockets
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* Remove path from test_listen / showdown_server_mock

* Upgrade websocket imports

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Haris Sahovic <harissahovic@gmail.com>
  • Loading branch information
dependabot[bot] and hsahovic authored Jan 25, 2025
1 parent 96f8fcf commit c80d8a2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ orjson
pettingzoo
requests
tabulate
websockets==12.0
websockets==14.2
6 changes: 3 additions & 3 deletions src/poke_env/ps_client/ps_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
from typing import Any, List, Optional, Set

import requests
import websockets.client as ws
from websockets.client import WebSocketClientProtocol
import websockets as ws
from websockets import ClientConnection
from websockets.exceptions import ConnectionClosedOK

from poke_env.concurrency import (
Expand Down Expand Up @@ -84,7 +84,7 @@ def __init__(
self._logged_in: Event = create_in_poke_loop(Event)
self._sending_lock = create_in_poke_loop(Lock)

self.websocket: WebSocketClientProtocol
self.websocket: ClientConnection
self._logger: Logger = self._create_logger(log_level)

if start_listening:
Expand Down
2 changes: 1 addition & 1 deletion unit_tests/ps_client/test_ps_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ async def test_listen(handle_message_mock):

semaphore = asyncio.Semaphore()

async def showdown_server_mock(websocket, path):
async def showdown_server_mock(websocket):
semaphore.release()
await websocket.ping()
await websocket.send("error|test 1")
Expand Down

0 comments on commit c80d8a2

Please sign in to comment.