Skip to content

Commit af6c702

Browse files
marketcallsclaude
andcommitted
fix(utils): correct check_tmp_noexec return type annotation
The function returns None on all paths, not bool. Fix the type hint and remove the misleading Returns docstring section. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent f44aa2e commit af6c702

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

utils/env_check.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,11 @@ def configure_llvmlite_paths() -> None:
4747
check_tmp_noexec()
4848

4949

50-
def check_tmp_noexec() -> bool:
50+
def check_tmp_noexec() -> None:
5151
"""
52-
Check if /tmp is mounted with the noexec flag.
52+
Check if /tmp is mounted with the noexec flag and print a warning.
5353
5454
This helps users understand why llvmlite might fail to load.
55-
56-
Returns:
57-
bool: True if /tmp is likely mounted with noexec on Linux, False otherwise.
5855
"""
5956
if sys.platform != 'linux':
6057
return

0 commit comments

Comments
 (0)