Skip to content

Commit

Permalink
One more isinstance change to make linter happy
Browse files Browse the repository at this point in the history
  • Loading branch information
andy31415 committed Oct 16, 2023
1 parent aab5bf5 commit 69e3dd2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/py_matter_idl/matter_idl/matter_idl_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 69e3dd2

Please sign in to comment.