From 69e3dd27a464f8b162f16bb2398bee0c76465056 Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Mon, 16 Oct 2023 13:08:48 -0400 Subject: [PATCH] One more isinstance change to make linter happy --- scripts/py_matter_idl/matter_idl/matter_idl_parser.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/py_matter_idl/matter_idl/matter_idl_parser.py b/scripts/py_matter_idl/matter_idl/matter_idl_parser.py index 21f4002d04ab6b..0d1bfb8d869e49 100755 --- a/scripts/py_matter_idl/matter_idl/matter_idl_parser.py +++ b/scripts/py_matter_idl/matter_idl/matter_idl_parser.py @@ -513,9 +513,9 @@ def idl(self, items): endpoints = [] for item in items: - if type(item) == Cluster: + if isinstance(item, Cluster): clusters.append(item) - elif type(item) == Endpoint: + elif isinstance(item, Endpoint): endpoints.append(item) else: raise Exception("UNKNOWN idl content item: %r" % item)