From 36abc475d445c9878b566cc06c12e00da92464bb Mon Sep 17 00:00:00 2001 From: toofar Date: Wed, 2 Aug 2023 20:45:03 +1200 Subject: fix lint Seems the new flake8 release is pulling down a (somewhat) new pycodestyle that prefers is/is not over ==/!= when comparing exact types. They should behave the same. ref: #7807 --- tests/helpers/testutils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/helpers/testutils.py b/tests/helpers/testutils.py index f6d7fcc4b..dc6fdac32 100644 --- a/tests/helpers/testutils.py +++ b/tests/helpers/testutils.py @@ -150,7 +150,7 @@ def partial_compare(val1, val2, *, indent=0): if val2 is Ellipsis: print_i("Ignoring ellipsis comparison", indent, error=True) return PartialCompareOutcome() - elif type(val1) != type(val2): # pylint: disable=unidiomatic-typecheck + elif type(val1) is not type(val2): outcome = PartialCompareOutcome( "Different types ({}, {}) -> False".format(type(val1).__name__, type(val2).__name__)) -- cgit v1.2.3-54-g00ecf