Skip to content

Commit

Permalink
Work around python/mypy#1153; see also
Browse files Browse the repository at this point in the history
pypa/twine#551.

This fixes pypa#221, “Mypy error: Module 'importlib' has no attribute
'metadata'”.
  • Loading branch information
musicinmybrain committed Jan 26, 2021
1 parent bc475b5 commit ca6d84c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/build/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def check_dependency(req_string, ancestral_req_strings=(), parent_extras=frozens
if sys.version_info >= (3, 8):
from importlib import metadata as importlib_metadata
else:
import importlib_metadata
import importlib_metadata # type: ignore

req = packaging.requirements.Requirement(req_string)

Expand Down

0 comments on commit ca6d84c

Please sign in to comment.