Skip to content

Commit

Permalink
types: fix mypy check
Browse files Browse the repository at this point in the history
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
  • Loading branch information
henryiii authored and layday committed Dec 1, 2022
1 parent 4475cf1 commit a7617f8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,9 @@ test = [
'setuptools >= 56.0.0; python_version >= "3.10"',
]
typing = [
"importlib-metadata >= 4.6.4",
"mypy == 0.942",
"importlib-metadata >= 5.1",
"mypy == 0.991",
"tomli",
"typing-extensions >= 3.7.4.3",
]
virtualenv = [
Expand Down
3 changes: 1 addition & 2 deletions src/build/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@
def _project_wheel_metadata(builder: build.ProjectBuilder) -> importlib_metadata.PackageMetadata:
with tempfile.TemporaryDirectory() as tmpdir:
path = pathlib.Path(builder.metadata_path(tmpdir))
# https://github.com/python/importlib_metadata/pull/343
return importlib_metadata.PathDistribution(path).metadata # type: ignore[arg-type]
return importlib_metadata.PathDistribution(path).metadata


def project_wheel_metadata(
Expand Down

0 comments on commit a7617f8

Please sign in to comment.