Skip to content

Commit 6d757bb

Browse files
committed
Remove redundant comment and fix docstring
1 parent 8d40f52 commit 6d757bb

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,14 +125,13 @@ def put(self, priority: int, task: MigrationNode) -> None:
125125
heapq.heappush(self._entries, entry)
126126

127127
def get(self) -> MigrationNode | None:
128-
"""Gets the tasks with lowest priority."""
128+
"""Gets the tasks with the lowest priority."""
129129
while self._entries:
130130
_, _, task = heapq.heappop(self._entries)
131131
if task == self._REMOVED:
132132
continue
133133
assert isinstance(task, MigrationNode)
134134
self._remove(task)
135-
# Ignore type because heappop returns Any, while we know it is an QueueEntry
136135
return task
137136
return None
138137

0 commit comments

Comments
 (0)