Skip to content

Commit

Permalink
Update type annotations for new pkginfo version
Browse files Browse the repository at this point in the history
  • Loading branch information
domdfcoding committed Jan 15, 2024
1 parent 577ac4e commit 05fbc23
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from typing import Callable, List, Union

# 3rd party
import pkginfo # type: ignore
import pkginfo
import pytest
from coincidence.regressions import AdvancedDataRegressionFixture
from domdf_python_tools.paths import PathPlus, in_directory
Expand Down Expand Up @@ -52,6 +52,7 @@ def get_pkginfo(
with in_directory(tmp_pathplus):
dist_filename = build_func(dist_dir)
dist_file = dist_dir / dist_filename
info: Union[pkginfo.SDist, pkginfo.Wheel]
if dist_filename.endswith(".whl"):
info = pkginfo.Wheel(dist_file)
elif dist_filename.endswith(".tar.gz"):
Expand Down

0 comments on commit 05fbc23

Please sign in to comment.