From 1ddd250dcfeb6126028154ffcc1dfb801209d8ef Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 9 Oct 2024 07:49:30 +0000 Subject: [PATCH] Bump the python-packages group with 10 updates (#2478) * Bump the python-packages group with 10 updates Bumps the python-packages group with 10 updates: | Package | From | To | | --- | --- | --- | | [a2wsgi](https://github.com/abersheeran/a2wsgi) | `1.10.6` | `1.10.7` | | [build](https://github.com/pypa/build) | `1.2.1` | `1.2.2` | | [ruff](https://github.com/astral-sh/ruff) | `0.5.0` | `0.6.8` | | [pytest](https://github.com/pytest-dev/pytest) | `8.2.2` | `8.3.3` | | [mypy](https://github.com/python/mypy) | `1.10.1` | `1.11.2` | | [types-pyyaml](https://github.com/python/typeshed) | `6.0.12.20240311` | `6.0.12.20240917` | | [coverage](https://github.com/nedbat/coveragepy) | `7.5.4` | `7.6.1` | | [httpx](https://github.com/encode/httpx) | `0.27.0` | `0.27.2` | | [mkdocs](https://github.com/mkdocs/mkdocs) | `1.6.0` | `1.6.1` | | [mkdocs-material](https://github.com/squidfunk/mkdocs-material) | `9.5.27` | `9.5.39` | Updates `a2wsgi` from 1.10.6 to 1.10.7 - [Commits](https://github.com/abersheeran/a2wsgi/compare/v1.10.6...v1.10.7) Updates `build` from 1.2.1 to 1.2.2 - [Release notes](https://github.com/pypa/build/releases) - [Changelog](https://github.com/pypa/build/blob/main/CHANGELOG.rst) - [Commits](https://github.com/pypa/build/compare/1.2.1...1.2.2) Updates `ruff` from 0.5.0 to 0.6.8 - [Release notes](https://github.com/astral-sh/ruff/releases) - [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md) - [Commits](https://github.com/astral-sh/ruff/compare/0.5.0...0.6.8) Updates `pytest` from 8.2.2 to 8.3.3 - [Release notes](https://github.com/pytest-dev/pytest/releases) - [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst) - [Commits](https://github.com/pytest-dev/pytest/compare/8.2.2...8.3.3) Updates `mypy` from 1.10.1 to 1.11.2 - [Changelog](https://github.com/python/mypy/blob/master/CHANGELOG.md) - [Commits](https://github.com/python/mypy/compare/v1.10.1...v1.11.2) Updates `types-pyyaml` from 6.0.12.20240311 to 6.0.12.20240917 - [Commits](https://github.com/python/typeshed/commits) Updates `coverage` from 7.5.4 to 7.6.1 - [Release notes](https://github.com/nedbat/coveragepy/releases) - [Changelog](https://github.com/nedbat/coveragepy/blob/master/CHANGES.rst) - [Commits](https://github.com/nedbat/coveragepy/compare/7.5.4...7.6.1) Updates `httpx` from 0.27.0 to 0.27.2 - [Release notes](https://github.com/encode/httpx/releases) - [Changelog](https://github.com/encode/httpx/blob/master/CHANGELOG.md) - [Commits](https://github.com/encode/httpx/compare/0.27.0...0.27.2) Updates `mkdocs` from 1.6.0 to 1.6.1 - [Release notes](https://github.com/mkdocs/mkdocs/releases) - [Commits](https://github.com/mkdocs/mkdocs/compare/1.6.0...1.6.1) Updates `mkdocs-material` from 9.5.27 to 9.5.39 - [Release notes](https://github.com/squidfunk/mkdocs-material/releases) - [Changelog](https://github.com/squidfunk/mkdocs-material/blob/master/CHANGELOG) - [Commits](https://github.com/squidfunk/mkdocs-material/compare/9.5.27...9.5.39) --- updated-dependencies: - dependency-name: a2wsgi dependency-type: direct:production update-type: version-update:semver-patch dependency-group: python-packages - dependency-name: build dependency-type: direct:production update-type: version-update:semver-patch dependency-group: python-packages - dependency-name: ruff dependency-type: direct:production update-type: version-update:semver-minor dependency-group: python-packages - dependency-name: pytest dependency-type: direct:production update-type: version-update:semver-minor dependency-group: python-packages - dependency-name: mypy dependency-type: direct:production update-type: version-update:semver-minor dependency-group: python-packages - dependency-name: types-pyyaml dependency-type: direct:production update-type: version-update:semver-patch dependency-group: python-packages - dependency-name: coverage dependency-type: direct:production update-type: version-update:semver-minor dependency-group: python-packages - dependency-name: httpx dependency-type: direct:production update-type: version-update:semver-patch dependency-group: python-packages - dependency-name: mkdocs dependency-type: direct:production update-type: version-update:semver-patch dependency-group: python-packages - dependency-name: mkdocs-material dependency-type: direct:production update-type: version-update:semver-patch dependency-group: python-packages ... Signed-off-by: dependabot[bot] * Add type hints to MockTransport --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Marcelo Trylesinski --- requirements.txt | 20 ++++++++++---------- tests/protocols/test_utils.py | 9 ++++++--- 2 files changed, 16 insertions(+), 13 deletions(-) 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():