diff --git a/mitmproxy/tools/web/app.py b/mitmproxy/tools/web/app.py index 578af252f..e10623727 100644 --- a/mitmproxy/tools/web/app.py +++ b/mitmproxy/tools/web/app.py @@ -284,7 +284,7 @@ class WebSocketEventBroadcaster(tornado.websocket.WebSocketHandler): connections: ClassVar[set[WebSocketEventBroadcaster]] _send_tasks: ClassVar[set[asyncio.Task]] = set() - def open(self): + def open(self, *args, **kwargs): self.connections.add(self) def on_close(self): diff --git a/pyproject.toml b/pyproject.toml index 96e882344..82bbe92fc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -75,14 +75,14 @@ dev = [ "tox>=4.15.1,<=4.16.0", "wheel>=0.36.2,<=0.43", "build>=0.10.0,<=1.2.1", - "mypy<=1.10.1,>=1.10.1", + "mypy>=1.10.1,<=1.11.0", "ruff<=0.5.0,>=0.5.0", "types-certifi>=2021.10.8.3,<=2021.10.8.3", "types-Flask>=1.1.6,<=1.1.6", "types-Werkzeug>=1.0.9,<=1.0.9", - "types-requests<=2.32.0.20240622,>=2.32.0.20240622", + "types-requests>=2.32.0.20240622,<=2.32.0.20240712", "types-cryptography>=3.3.23.2,<=3.3.23.2", - "types-pyOpenSSL>=23.3.0.0,<=24.1.0.20240425", + "types-pyOpenSSL>=23.3.0.0,<=24.1.0.20240722", ] [project.urls]