From c7d846020ec43b36c903639caf7ad57c775c7582 Mon Sep 17 00:00:00 2001 From: Guillaume Abrioux Date: Tue, 10 Feb 2026 16:25:47 +0100 Subject: [PATCH] node-proxy: fix flake8 E721 in _dict_diff Use "is not" instead of "!=" for type comparison in _dict_diff() Fixes: https://tracker.ceph.com/issues/74749 Signed-off-by: Guillaume Abrioux --- src/ceph-node-proxy/ceph_node_proxy/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ceph-node-proxy/ceph_node_proxy/util.py b/src/ceph-node-proxy/ceph_node_proxy/util.py index 4d842a7bc93..671604b49e3 100644 --- a/src/ceph-node-proxy/ceph_node_proxy/util.py +++ b/src/ceph-node-proxy/ceph_node_proxy/util.py @@ -226,7 +226,7 @@ def write_tmp_file( def _dict_diff(old: Any, new: Any) -> Any: if old == new: return None - if type(old) != type(new) or not isinstance(new, dict): + if type(old) is not type(new) or not isinstance(new, dict): return new if not isinstance(old, dict): return new -- 2.47.3