Skip to content

Commit

Permalink
Fix flake8 complaint: use 'is' for type comarisons
Browse files Browse the repository at this point in the history
  • Loading branch information
inducer committed Aug 1, 2023
1 parent ffcb81a commit 48ff303
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pytools/obj_array.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def flat_obj_array(*args):
res_list.extend(arg)

# Only flatten genuine, non-subclassed object arrays.
elif type(arg) == np.ndarray:
elif type(arg) is np.ndarray:
res_list.extend(arg.flat)

else:
Expand Down

0 comments on commit 48ff303

Please sign in to comment.