Skip to content

Commit 4e2aedc

Browse files
committed
rename local
1 parent 5b4e0e6 commit 4e2aedc

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/databricks/labs/ucx/sequencing/sequencing.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -221,18 +221,18 @@ def _populate_incoming_counts(self) -> dict[tuple[str, str], int]:
221221

222222
@classmethod
223223
def _get_leaf_keys(cls, incoming_counts: dict[tuple[str, str], int]) -> Iterable[tuple[str, str]]:
224-
count = 0
225-
leaf_keys = list(cls._yield_leaf_keys(incoming_counts, count))
224+
max_count = 0
225+
leaf_keys = list(cls._yield_leaf_keys(incoming_counts, max_count))
226226
# if we're not finding nodes with 0 incoming counts, it's likely caused by cyclic dependencies
227227
# in which case it's safe to process nodes with a higher incoming count
228228
while not leaf_keys:
229-
count += 1
230-
leaf_keys = list(cls._yield_leaf_keys(incoming_counts, count))
229+
max_count += 1
230+
leaf_keys = list(cls._yield_leaf_keys(incoming_counts, max_count))
231231
return leaf_keys
232232

233233
@classmethod
234-
def _yield_leaf_keys(cls, incoming_counts: dict[tuple[str, str], int], level: int) -> Iterable[tuple[str, str]]:
234+
def _yield_leaf_keys(cls, incoming_counts: dict[tuple[str, str], int], max_count: int) -> Iterable[tuple[str, str]]:
235235
for node_key, incoming_count in incoming_counts.items():
236-
if incoming_count > level:
236+
if incoming_count > max_count:
237237
continue
238238
yield node_key

0 commit comments

Comments
 (0)