From 8be245aeac5d732d9f9d9ae2a30aa8dfa0b48baf Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 11 Jul 2022 20:42:20 +0200 Subject: [PATCH] Bump pyupgrade from 2.34.0 to 2.37.1 (#221) * Bump pyupgrade from 2.34.0 to 2.37.1 Bumps [pyupgrade](https://github.com/asottile/pyupgrade) from 2.34.0 to 2.37.1. - [Release notes](https://github.com/asottile/pyupgrade/releases) - [Commits](https://github.com/asottile/pyupgrade/compare/v2.34.0...v2.37.1) --- updated-dependencies: - dependency-name: pyupgrade dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] * Update imports Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Klaas Schoute --- omnikinverter/tcp.py | 3 ++- poetry.lock | 4 ++-- pyproject.toml | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) 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"