Skip to content

Commit 7670736

Browse files
radarherehugovk
andauthored
Use type hint
Co-authored-by: Hugo van Kemenade <[email protected]>
1 parent 5059e5c commit 7670736

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,9 +242,9 @@ def _find_include_dir(self, dirname, include):
242242
return subdir
243243

244244

245-
def _cmd_exists(cmd):
245+
def _cmd_exists(cmd: str) -> bool:
246246
if "PATH" not in os.environ:
247-
return
247+
return False
248248
return any(
249249
os.access(os.path.join(path, cmd), os.X_OK)
250250
for path in os.environ["PATH"].split(os.pathsep)

0 commit comments

Comments
 (0)