Skip to content

Commit d6da2d6

Browse files
committed
Refactor flash_sort.py to resolve Ruff check errors
1 parent 322398a commit d6da2d6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

sorts/flash_sort.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ def flash_sort(self) -> None:
3939
>>> arr = [2, 2, 2]
4040
>>> sorter = FlashSort(arr, n_classes=2)
4141
>>> sorter.flash_sort()
42-
>>> arr
4342
[2, 2, 2]
4443
"""
4544
if self.n <= 1:
@@ -97,4 +96,4 @@ def flash_sort(self) -> None:
9796
unsorted = [int(item.strip()) for item in user_input.split(",")]
9897
sorter = FlashSort(unsorted, n_classes=5)
9998
sorter.flash_sort()
100-
print(unsorted)
99+
print(unsorted)

0 commit comments

Comments
 (0)