Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
9 changes: 6 additions & 3 deletions tests/protocols/test_utils.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
from __future__ import annotations

import socket
from asyncio import Transport
from typing import Any

import pytest

Expand All @@ -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():
Expand Down