Skip to content

Commit b4904c0

Browse files
Aayaan SinghAayaan Singh
authored andcommitted
Add type hint for item in _insert
1 parent e8af649 commit b4904c0

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎sorts/library_sort.py‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
python3 library_sort.py
1515
"""
1616

17+
from typing import Any
18+
1719
_EMPTY = object()
1820

1921

@@ -33,7 +35,7 @@ def _spread(slots: list) -> None:
3335
slots[i * len(slots) // len(items)] = item
3436

3537

36-
def _insert(slots: list, item) -> None:
38+
def _insert(slots: list, item: Any) -> None:
3739
"""
3840
Insert item into the gapped array, keeping the stored items in sorted order.
3941

0 commit comments

Comments
 (0)