Skip to content

Commit

Permalink
Remove mypy-extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
njgheorghita committed Dec 11, 2019
1 parent 6bf0d32 commit 8663550
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
1 change: 1 addition & 0 deletions newsfragments/1546.misc.rst
@@ -0,0 +1 @@
Remove redundant mypy-extensions dependency.
5 changes: 2 additions & 3 deletions setup.py
Expand Up @@ -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',
Expand Down
4 changes: 2 additions & 2 deletions web3/_utils/compat/__init__.py
@@ -1,6 +1,6 @@
# remove once web3 supports python>=3.8
# TypedDict was added to typing in 3.8
# Types are added to typing in 3.8
try:
from typing import Literal, Protocol, TypedDict # type: ignore
except ImportError:
from typing_extensions import Literal, Protocol, TypedDict # type: ignore # noqa: F401
from typing_extensions import Literal, Protocol, TypedDict # noqa: F401

0 comments on commit 8663550

Please sign in to comment.