Skip to content

Commit

Permalink
Fix mypy complaints about nullability (#31711)
Browse files Browse the repository at this point in the history
  • Loading branch information
andy31415 authored and pull[bot] committed Feb 16, 2024
1 parent b96ef14 commit 1202927
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/py_matter_idl/matter_idl/backwards_compatibility.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,8 +279,10 @@ def _check_cluster_list_compatible(self, original: List[Cluster], updated: List[
for original_cluster in original:
updated_cluster = updated_clusters.get(original_cluster.name)

if not_stable(updated_cluster.api_maturity) or not_stable(original_cluster.api_maturity):
# no point in checking
if not_stable(original_cluster.api_maturity):
continue

if updated_cluster and not_stable(updated_cluster.api_maturity):
continue

self._check_cluster_compatible(original_cluster, updated_cluster)
Expand Down

0 comments on commit 1202927

Please sign in to comment.