From feb7428b7bea0fa847be13ef02c7142d5a3ab3d9 Mon Sep 17 00:00:00 2001 From: Nick Gheorghita Date: Mon, 9 Dec 2019 14:21:01 +0100 Subject: [PATCH] Remove mypy-extensions --- newsfragments/1546.misc.rst | 1 + setup.py | 5 ++--- web3/_utils/compat/__init__.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) create mode 100644 newsfragments/1546.misc.rst diff --git a/newsfragments/1546.misc.rst b/newsfragments/1546.misc.rst new file mode 100644 index 0000000000..648accc978 --- /dev/null +++ b/newsfragments/1546.misc.rst @@ -0,0 +1 @@ +Remove redundant mypy-extensions dependency. diff --git a/setup.py b/setup.py index 4943eaecda..b01144d669 100644 --- a/setup.py +++ b/setup.py @@ -80,10 +80,9 @@ "protobuf>=3.10.0,<4", "pypiwin32>=223;platform_system=='Windows'", "requests>=2.16.0,<3.0.0", + # remove typing_extensions after python_requires>=3.8, see web3._utils.compat + "typing-extensions>=3.7.4.1,<4;python_version<'3.8'", "websockets>=8.1.0,<9.0.0", - # remove mypy_extensions & typing-extensions after python_requires>=3.8 - # see web3._utils.compat - "typing-extensions>=3.7.4.1,<4", ], setup_requires=['setuptools-markdown'], python_requires='>=3.6,<4', diff --git a/web3/_utils/compat/__init__.py b/web3/_utils/compat/__init__.py index 980458fb87..e272998a51 100644 --- a/web3/_utils/compat/__init__.py +++ b/web3/_utils/compat/__init__.py @@ -1,6 +1,6 @@ import sys # remove once web3 supports python>=3.8 -# TypedDict was added to typing in 3.8 +# Types was added to typing in 3.8 if sys.version_info >= (3, 8): from typing import Literal, Protocol, TypedDict else: