Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix mypy error #1383

Merged
merged 1 commit into from
Apr 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/pipx/venv_inspect.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand Down