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
3 changes: 2 additions & 1 deletion devolo_home_control_api/publisher/publisher.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
from __future__ import annotations

import logging
from typing import Any, Callable, KeysView
from collections.abc import KeysView
from typing import Any, Callable


class Publisher:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ ignore_missing_imports = true
line-length = 127
lint.ignore = ["ANN401", "B024", "COM812", "D203", "D205", "D212", "EM", "FBT001", "N818", "TCH", "TRY300", "TRY400"]
lint.select = ["ALL"]
target-version = "py37"
target-version = "py39"

[tool.ruff.lint.isort]
combine-as-imports = true
Expand Down
2 changes: 1 addition & 1 deletion tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def get_fixtures_path() -> Path:
return Path(__file__).parent.joinpath("fixtures")


@lru_cache()
@lru_cache
def load_fixture(name: str) -> dict[str, Any]:
"""Load a fixture."""
fixture_path = get_fixtures_path().joinpath(f"{name}.json")
Expand Down
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Configure tests."""
from collections.abc import Generator
from socket import inet_aton
from typing import Generator
from unittest.mock import patch

import pytest
Expand Down
2 changes: 1 addition & 1 deletion tests/mocks/mock_websocket.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def read() -> None:
"""Call registered callback method."""
data = self.sock.recv()
if not data:
self._callback(self.on_error, self, Exception)
self._callback(self.on_error, Exception)
elif data == str(ABNF.OPCODE_PONG):
self._callback(self.on_pong, data)
elif data == str(ABNF.OPCODE_CLOSE):
Expand Down