From 05fbc237406add08d93803cf356bc986c1bda2b2 Mon Sep 17 00:00:00 2001 From: Dominic Davis-Foster Date: Tue, 17 Jan 2023 10:29:25 +0000 Subject: [PATCH] Update type annotations for new pkginfo version --- tests/test_metadata.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_metadata.py b/tests/test_metadata.py index dea4a95..f479db6 100644 --- a/tests/test_metadata.py +++ b/tests/test_metadata.py @@ -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 @@ -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"):