From b56eebc5c2d49d1e14cb5d69bec78f4a84108e1f Mon Sep 17 00:00:00 2001 From: mayeut Date: Sun, 30 Jul 2023 14:58:01 +0200 Subject: [PATCH] fix[test]: linter check on type comparison Signed-off-by: mayeut --- psutil/tests/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/psutil/tests/__init__.py b/psutil/tests/__init__.py index e6f0abc35..9108f6feb 100644 --- a/psutil/tests/__init__.py +++ b/psutil/tests/__init__.py @@ -1744,7 +1744,7 @@ def is_namedtuple(x): f = getattr(t, '_fields', None) if not isinstance(f, tuple): return False - return all(type(n) == str for n in f) + return all(type(n) is str for n in f) if POSIX: