From fe7547dc17077c85d0f73e7eea97e9d8dcd2e0b8 Mon Sep 17 00:00:00 2001 From: Sam Bull Date: Sun, 8 Aug 2021 14:52:03 +0100 Subject: [PATCH] Lint --- aioredis/compat.py | 12 ++++-------- aioredis/connection.py | 2 -- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/aioredis/compat.py b/aioredis/compat.py index 5d164fcc4..ae636028d 100644 --- a/aioredis/compat.py +++ b/aioredis/compat.py @@ -1,12 +1,8 @@ import sys if sys.version_info >= (3, 8): - from typing import ( - Protocol as Protocol, - TypedDict as TypedDict, - ) + from typing import Protocol, TypedDict else: - from typing_extensions import ( - Protocol as Protocol, - TypedDict as TypedDict, - ) + from typing_extensions import Protocol, TypedDict + +__all__ = ("Protocol", "TypedDict") diff --git a/aioredis/connection.py b/aioredis/connection.py index 9bcc60a2b..c8bd94077 100644 --- a/aioredis/connection.py +++ b/aioredis/connection.py @@ -17,12 +17,10 @@ Iterable, List, Mapping, - NewType, Optional, Set, Tuple, Type, - TypedDict, TypeVar, Union, )