Skip to content

Commit 629abab

Browse files
Fix pre-commit mypy failures
python/triton/knobs.py:492: error: Argument 2 to "env_bool" has incompatible type "None"; expected "bool | Callable[[], bool]" [arg-type] python/triton/knobs.py:498: error: Incompatible types in assignment (expression has type "env_str", variable has type "env_bool") [assignment] Signed-off-by: Whitney Tsang <[email protected]>
1 parent 4a0c8fc commit 629abab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/triton/knobs.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -489,13 +489,13 @@ class nvidia_knobs(base_knobs):
489489
class intel_knobs(base_knobs):
490490
spirv_dis: env_intel_tool = env_intel_tool("spirv-dis")
491491

492-
gen_native_code: env_bool = env_bool("TRITON_XPU_GEN_NATIVE_CODE", None)
492+
gen_native_code: env_bool = env_bool("TRITON_XPU_GEN_NATIVE_CODE", False)
493493
tile_load_ll: env_bool = env_bool("TRITON_XPU_ENABLE_TILE_LOAD_LINEAR_LAYOUT", True)
494494
advanced_path: env_bool = env_bool("TRITON_INTEL_ADVANCED_PATH", False)
495495
opt_reduction_locality: env_bool = env_bool("TRITON_INTEL_OPTIMIZE_REDUCTION_LOCALITY", False)
496496
reduce_transpose: env_bool = env_bool("TRITON_INTEL_REDUCE_TRANSPOSE", False)
497497

498-
raise_block_pointer: env_bool = env_str("TRITON_INTEL_RAISE_BLOCK_POINTER", "0")
498+
raise_block_pointer: env_str = env_str("TRITON_INTEL_RAISE_BLOCK_POINTER", "0")
499499
dump_spirv_kernel_args: env_opt_str = env_opt_str("TRITON_XPU_DUMP_SPIRV_KERNEL_ARGS")
500500

501501
libdevice_path: env_opt_str = env_opt_str("TRITON_LIBDEVICE_PATH")

0 commit comments

Comments
 (0)