Skip to content

Commit

Permalink
Fix mypy warning with updated packaging requirement
Browse files Browse the repository at this point in the history
  • Loading branch information
virtuald committed Feb 12, 2025
1 parent 75ab384 commit 22a4712
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions robotpy_installer/pypackages.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,10 @@ def _resolver(req: Requirement, env: Env) -> typing.List[Requirement]:
raise ValueError("internal error")

m = metadata_from_wheel(creq.file_path)
return evaluate_extras_markers(m.requires_dist, env, req.extras)
if m.requires_dist:
return evaluate_extras_markers(m.requires_dist, env, req.extras)

return []

return _resolver

Expand Down Expand Up @@ -187,7 +190,7 @@ def get_pip_cache_packages(


def make_packages(
packages: typing.Mapping[str, typing.Union[typing.List[str], str]]
packages: typing.Mapping[str, typing.Union[typing.List[str], str]],
) -> Packages:
"""
For unit testing
Expand Down

0 comments on commit 22a4712

Please sign in to comment.