Skip to content

Commit

Permalink
Merge pull request #551 from bhrutledge/550-mypy-0750
Browse files Browse the repository at this point in the history
Workaround mypy issues with importlib.metadata
  • Loading branch information
jaraco authored Dec 3, 2019
2 parents 482906c + 4235837 commit 95c9c91
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 1 addition & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,7 @@ commands =

[testenv:lint-mypy]
deps =
# pin to workaround #550
mypy<0.750
mypy
lxml
commands =
# TODO: Consider checking the tests after the source is fully typed
Expand Down
6 changes: 4 additions & 2 deletions twine/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,11 @@

__copyright__ = "Copyright 2019 Donald Stufft and individual contributors"

try:
import sys

if sys.version_info[:2] >= (3, 8):
import importlib.metadata as importlib_metadata
except ImportError:
else:
import importlib_metadata


Expand Down

0 comments on commit 95c9c91

Please sign in to comment.