Skip to content

Commit e87cf3d

Browse files
Simplify find_spec statement
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 0b4abac commit e87cf3d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/powerfit_em/helpers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66

77

88
def pyfftw_available() -> bool:
9-
return True if find_spec("pyfftw") is not None else False # noqa: SIM210
9+
return find_spec("pyfftw") is not None
1010

1111

1212
def opencl_available() -> bool:
13-
return True if find_spec("pyopencl") is not None else False # noqa: SIM210
13+
return find_spec("pyopencl") is not None
1414

1515

1616
def determine_core_indices(mask):

0 commit comments

Comments
 (0)