Skip to content

Commit

Permalink
Fixing typing hints
Browse files Browse the repository at this point in the history
  • Loading branch information
rossant committed May 27, 2021
1 parent ffe4d02 commit 607b8f7
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions auditwheel/repair.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,15 @@
re.VERBOSE).match


def _is_in_list(soname: str, items: Optional[List[str]]) -> str:
for item in items:
def _is_in_list(soname: str, items: Optional[List[str]]) -> Optional[str]:
for item in (items or []):
if item in soname:
return item
return None


def _filter(items: List[str]) -> List[str]:
return [_.strip() for _ in items if _.strip()]
def _filter(items: Optional[List[str]]) -> List[str]:
return [_.strip() for _ in (items or []) if _.strip()]


def repair_wheel(wheel_path: str, abis: List[str], lib_sdir: str, out_dir: str,
Expand Down

0 comments on commit 607b8f7

Please sign in to comment.