diff --git a/requirements.txt b/requirements.txt index 848e6a290..dc3b71d6e 100644 --- a/requirements.txt +++ b/requirements.txt @@ -5,28 +5,28 @@ h11 @ git+https://github.com/python-hyper/h11.git@master # Explicit optionals -a2wsgi==1.10.6 +a2wsgi==1.10.7 wsproto==1.2.0 websockets==13.1 # Packaging -build==1.2.1 +build==1.2.2 twine==5.1.1 # Testing -ruff==0.5.0 -pytest==8.2.2 +ruff==0.6.8 +pytest==8.3.3 pytest-mock==3.14.0 -mypy==1.10.1 +mypy==1.11.2 types-click==7.1.8 -types-pyyaml==6.0.12.20240311 +types-pyyaml==6.0.12.20240917 trustme==1.1.0 cryptography==43.0.1 -coverage==7.5.4 +coverage==7.6.1 coverage-conditional-plugin==0.9.0 -httpx==0.27.0 +httpx==0.27.2 watchgod==0.8.2 # Documentation -mkdocs==1.6.0 -mkdocs-material==9.5.27 +mkdocs==1.6.1 +mkdocs-material==9.5.39 diff --git a/tests/protocols/test_utils.py b/tests/protocols/test_utils.py index 7639a99df..3be0c6e39 100644 --- a/tests/protocols/test_utils.py +++ b/tests/protocols/test_utils.py @@ -1,5 +1,8 @@ +from __future__ import annotations + import socket from asyncio import Transport +from typing import Any import pytest @@ -20,11 +23,11 @@ def getsockname(self): class MockTransport(Transport): - def __init__(self, info): + def __init__(self, info: dict[str, Any]) -> None: self.info = info - def get_extra_info(self, info_type): - return self.info.get(info_type) + def get_extra_info(self, name: str, default: Any = None) -> Any: + return self.info.get(name) def test_get_local_addr_with_socket():