From 48ff30334b07c0143c0492be537c75327904a081 Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner Date: Tue, 1 Aug 2023 00:54:49 -0500 Subject: [PATCH] Fix flake8 complaint: use 'is' for type comarisons --- pytools/obj_array.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pytools/obj_array.py b/pytools/obj_array.py index 3ed4fb90..4351ffa5 100644 --- a/pytools/obj_array.py +++ b/pytools/obj_array.py @@ -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: