Skip to content

Commit

Permalink
Use type hint
Browse files Browse the repository at this point in the history
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
  • Loading branch information
radarhere and hugovk committed Mar 12, 2023
1 parent 5059e5c commit 7670736
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,9 +242,9 @@ def _find_include_dir(self, dirname, include):
return subdir


def _cmd_exists(cmd):
def _cmd_exists(cmd: str) -> bool:
if "PATH" not in os.environ:
return
return False
return any(
os.access(os.path.join(path, cmd), os.X_OK)
for path in os.environ["PATH"].split(os.pathsep)
Expand Down

0 comments on commit 7670736

Please sign in to comment.