Skip to content

Commit

Permalink
Merge pull request #3204 from python-trio/pre-commit-ci-update-config
Browse files Browse the repository at this point in the history
[pre-commit.ci] pre-commit autoupdate
  • Loading branch information
A5rocks authored Feb 11, 2025
2 parents c73c2ec + 398424e commit 26ea897
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ repos:
hooks:
- id: black
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.9.4
rev: v0.9.6
hooks:
- id: ruff
types: [file]
Expand All @@ -43,7 +43,7 @@ repos:
hooks:
- id: sphinx-lint
- repo: https://github.com/woodruffw/zizmor-pre-commit
rev: v1.3.0
rev: v1.3.1
hooks:
- id: zizmor
- repo: local
Expand All @@ -56,7 +56,7 @@ repos:
additional_dependencies: ["astor", "attrs", "black", "ruff"]
files: ^src\/trio\/_core\/(_run|(_i(o_(common|epoll|kqueue|windows)|nstrumentation)))\.py$
- repo: https://github.com/astral-sh/uv-pre-commit
rev: 0.5.26
rev: 0.5.29
hooks:
# Compile requirements
- id: pip-compile
Expand Down
8 changes: 2 additions & 6 deletions src/trio/testing/_fake_net.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
TYPE_CHECKING,
Any,
NoReturn,
TypeVar,
Union,
overload,
)
Expand Down Expand Up @@ -82,9 +81,6 @@ def _scatter(data: bytes, buffers: Iterable[Buffer]) -> int:
return written


T_UDPEndpoint = TypeVar("T_UDPEndpoint", bound="UDPEndpoint")


@attrs.frozen
class UDPEndpoint:
ip: IPAddress
Expand All @@ -101,9 +97,9 @@ def as_python_sockaddr(self) -> tuple[str, int] | tuple[str, int, int, int]:

@classmethod
def from_python_sockaddr(
cls: type[T_UDPEndpoint],
cls,
sockaddr: tuple[str, int] | tuple[str, int, int, int],
) -> T_UDPEndpoint:
) -> UDPEndpoint:
ip, port = sockaddr[:2]
return cls(ip=ipaddress.ip_address(ip), port=port)

Expand Down

0 comments on commit 26ea897

Please sign in to comment.