Skip to content

Commit

Permalink
Bump the python-packages group with 10 updates (#2478)
Browse files Browse the repository at this point in the history
* 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](abersheeran/a2wsgi@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](pypa/build@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](astral-sh/ruff@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](pytest-dev/pytest@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](python/mypy@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](nedbat/coveragepy@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](encode/httpx@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](mkdocs/mkdocs@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](squidfunk/mkdocs-material@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] <support@github.com>

* Add type hints to MockTransport

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
  • Loading branch information
dependabot[bot] and Kludex authored Oct 9, 2024
1 parent 108b1c9 commit 1ddd250
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 13 deletions.
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

0 comments on commit 1ddd250

Please sign in to comment.