style: make ruff happy

This commit is contained in:
lalala_233 2026-07-11 16:41:54 +08:00
parent 6a7359e693
commit b17068aa50
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -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