From b17068aa5011090b69fada37a8d302a5eca32638 Mon Sep 17 00:00:00 2001 From: lalala_233 Date: Sat, 11 Jul 2026 16:41:54 +0800 Subject: [PATCH] style: make ruff happy --- cuda_malloc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cuda_malloc.py b/cuda_malloc.py index fd318e30b..1204df90c 100644 --- a/cuda_malloc.py +++ b/cuda_malloc.py @@ -76,7 +76,7 @@ try: module = importlib.util.module_from_spec(spec) spec.loader.exec_module(module) version = module.__version__ - cuda_available = module.cuda != None + cuda_available = module.cuda is not None except: pass