mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 01:46:18 +03:00
Use type hint
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
This commit is contained in:
parent
5059e5c143
commit
7670736e18
4
setup.py
4
setup.py
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user