diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7a0fe379..a1a2f7b5 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -9,7 +9,7 @@ ci: repos: - repo: https://github.com/commitizen-tools/commitizen - rev: v4.11.2 + rev: v4.13.7 hooks: - id: commitizen stages: [commit-msg] @@ -38,7 +38,7 @@ repos: - id: pyupgrade args: [--py39-plus] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.14.11 + rev: v0.15.0 hooks: - id: ruff args: [--fix] diff --git a/examples/mockdevice.py b/examples/mockdevice.py index 2ff184bf..80be803c 100644 --- a/examples/mockdevice.py +++ b/examples/mockdevice.py @@ -103,7 +103,7 @@ def connection_made(self, transport: asyncio.Transport) -> None: self.peername = transport.get_extra_info("peername") self.transport = transport - def send(self, data: bytes, random_byte: Optional[None]) -> None: + def send(self, data: bytes, random_byte: None) -> None: """Trigger on data.""" if random_byte is not None: msg = self.construct_wrapped_message(data, random_byte)