Skip to content

Commit f876a9d

Browse files
Use modern list[int] type hint instead of deprecated typing.List
1 parent baad4f5 commit f876a9d

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

sorts/pancake_sort.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,8 @@
88
python pancake_sort.py
99
"""
1010

11-
from typing import List
1211

13-
14-
def pancake_sort(arr: List[int]) -> List[int]:
12+
def pancake_sort(arr: list[int]) -> list[int]:
1513
"""Sort Array with Pancake Sort.
1614
:param arr: Collection containing comparable items
1715
:return: Collection ordered in ascending order of items

0 commit comments

Comments
 (0)