Skip to content

Commit 8f2a4da

Browse files
MAINT: apply ruff/Pycodestyle rule E714
E714 Test for object identity should be `is not`
1 parent 0ae8180 commit 8f2a4da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

numpy/_core/code_generators/generate_umath.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1408,7 +1408,7 @@ def make_arrays(funcdict):
14081408
) from None
14091409

14101410
astype = ''
1411-
if not t.astype is None:
1411+
if t.astype is not None:
14121412
astype = '_As_%s' % thedict[t.astype]
14131413
astr = ('%s_functions[%d] = PyUFunc_%s%s;' %
14141414
(name, k, thedict[t.type], astype))

0 commit comments

Comments
 (0)