From c111fd016ae5c7089617f567be86703cdbdd359d Mon Sep 17 00:00:00 2001 From: Xuan Hu Date: Tue, 30 Apr 2024 13:05:19 +0800 Subject: [PATCH] chore: fix mypy error --- src/pipx/venv_inspect.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pipx/venv_inspect.py b/src/pipx/venv_inspect.py index 9dab0ffe8a..30a6a58174 100644 --- a/src/pipx/venv_inspect.py +++ b/src/pipx/venv_inspect.py @@ -91,7 +91,7 @@ def get_resources_from_dist_files(dist: metadata.Distribution, bin_path: Path, m if Path(path).parts[0] != "..": continue - dist_file_path = Path(dist.locate_file(path)) + dist_file_path = Path(str(dist.locate_file(path))) try: if dist_file_path.parent.samefile(bin_path): app_names.add(path.name) @@ -109,7 +109,7 @@ def get_resources_from_inst_files(dist: metadata.Distribution, bin_path: Path, m inst_files = dist.read_text("installed-files.txt") or "" for line in inst_files.splitlines(): entry = line.split(",")[0] # noqa: T484 - inst_file_path = Path(dist.locate_file(entry)).resolve() + inst_file_path = Path(str(dist.locate_file(entry))).resolve() try: if inst_file_path.parent.samefile(bin_path): app_names.add(inst_file_path.name)