Skip to content

Commit 720fbe0

Browse files
authoredJan 26, 2024
Fix mypy complaints about nullability (#31711)
1 parent 6e750ec commit 720fbe0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed
 

‎scripts/py_matter_idl/matter_idl/backwards_compatibility.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -279,8 +279,10 @@ def _check_cluster_list_compatible(self, original: List[Cluster], updated: List[
279279
for original_cluster in original:
280280
updated_cluster = updated_clusters.get(original_cluster.name)
281281

282-
if not_stable(updated_cluster.api_maturity) or not_stable(original_cluster.api_maturity):
283-
# no point in checking
282+
if not_stable(original_cluster.api_maturity):
283+
continue
284+
285+
if updated_cluster and not_stable(updated_cluster.api_maturity):
284286
continue
285287

286288
self._check_cluster_compatible(original_cluster, updated_cluster)

0 commit comments

Comments
 (0)