diff --git a/omnikinverter/tcp.py b/omnikinverter/tcp.py index ee8f59db..949eda82 100644 --- a/omnikinverter/tcp.py +++ b/omnikinverter/tcp.py @@ -1,6 +1,7 @@ """Data model and conversions for tcp-based communication with the Omnik Inverter.""" +from collections.abc import Generator from ctypes import BigEndianStructure, c_char, c_ubyte, c_uint, c_ushort -from typing import Any, Generator, Optional +from typing import Any, Optional from .const import LOGGER from .exceptions import OmnikInverterPacketInvalidError diff --git a/poetry.lock b/poetry.lock index 6d32896a..7b93140a 100644 --- a/poetry.lock +++ b/poetry.lock @@ -745,7 +745,7 @@ testing = ["fields", "hunter", "process-tests", "six", "pytest-xdist", "virtuale [[package]] name = "pyupgrade" -version = "2.34.0" +version = "2.37.1" description = "A tool to automatically upgrade syntax for newer versions." category = "dev" optional = false @@ -970,7 +970,7 @@ multidict = ">=4.0" [metadata] lock-version = "1.1" python-versions = "^3.9" -content-hash = "5600438b8cf33b8830bb5d7400d6966aa830f86213afa14b8120fcba2fce1a07" +content-hash = "777851f953334a3fd45df5b585c8a7fbdeb5fb53b6104fc5251c6dbf914a70ce" [metadata.files] aiohttp = [] diff --git a/pyproject.toml b/pyproject.toml index c3caa27f..7058b052 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -46,7 +46,7 @@ pytest = "^7.1.2" pytest-asyncio = "^0.18.3" pytest-cov = "^3.0.0" yamllint = "^1.26.3" -pyupgrade = "^2.34.0" +pyupgrade = "^2.37.1" flake8-simplify = "^0.19.2" vulture = "^2.5" flake8-bandit = "^3.0.0"