From 282b7c6954bdd0ecab13c341da18530df5c07b67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20K=C5=82oczko?= Date: Sat, 9 Nov 2024 12:17:44 +0000 Subject: [PATCH 1/2] really drop python<=3.7 support MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Filter all code over `pyupgracde --py38-plus`. Signed-off-by: Tomasz Kłoczko --- aioitertools/helpers.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/aioitertools/helpers.py b/aioitertools/helpers.py index bd7b794..2889e15 100644 --- a/aioitertools/helpers.py +++ b/aioitertools/helpers.py @@ -7,10 +7,7 @@ from .types import T -if sys.version_info < (3, 8): # pragma: no cover - from typing_extensions import Protocol -else: # pragma: no cover - from typing import Protocol +from typing import Protocol class Orderable(Protocol): # pragma: no cover From 3925bc262ccb3f017153ea5a4e3b9447e0252644 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20K=C5=82oczko?= Date: Sat, 9 Nov 2024 12:21:00 +0000 Subject: [PATCH 2/2] filter all code over `ruff` to remove unused imports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Tomasz Kłoczko --- aioitertools/helpers.py | 1 - 1 file changed, 1 deletion(-) diff --git a/aioitertools/helpers.py b/aioitertools/helpers.py index 2889e15..fe01716 100644 --- a/aioitertools/helpers.py +++ b/aioitertools/helpers.py @@ -2,7 +2,6 @@ # Licensed under the MIT license import inspect -import sys from typing import Awaitable, Union from .types import T