Skip to content

Commit 046afbd

Browse files
authored
The TypeVar is no longer needed.
1 parent aeba150 commit 046afbd

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

‎sorts/smoothsort.py‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,13 @@
1010
https://www.cs.utexas.edu/~EWD/ewd07xx/EWD796a.PDF
1111
"""
1212

13-
from typing import Any, Protocol, TypeVar
13+
from typing import Any, Protocol
1414

1515

1616
class Comparable(Protocol):
1717
def __lt__(self, other: Any, /) -> bool: ...
1818

1919

20-
T = TypeVar("T", bound=Comparable)
21-
22-
2320
# Precomputed Leonardo numbers: L(0)=1, L(1)=1, L(k)=L(k-1)+L(k-2)+1.
2421
# 46 values comfortably cover all practical list sizes.
2522
_LEONARDO: list[int] = [1, 1]

0 commit comments

Comments
 (0)