From 567cc8e4606682e977d9e598493eefe66d8410ce Mon Sep 17 00:00:00 2001
From: Andreas Kloeckner <inform@tiker.net>
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 3ed4fb9..4351ffa 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:
-- 
GitLab