Skip to content

Commit

Permalink
Merge pull request #1546 from njgheorghita/typing-extensions-import
Browse files Browse the repository at this point in the history
Remove mypy-extensions
  • Loading branch information
njgheorghita authored Dec 12, 2019
2 parents f5fcaa6 + feb7428 commit e4b835e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
1 change: 1 addition & 0 deletions newsfragments/1546.misc.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Remove redundant mypy-extensions dependency.
5 changes: 2 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
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
2 changes: 1 addition & 1 deletion web3/_utils/compat/__init__.py
Original file line number Diff line number Diff line change
@@ -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:
Expand Down

0 comments on commit e4b835e

Please sign in to comment.