Skip to content

Commit b7ce1d5

Browse files
Update type hints to use built-in list type
1 parent 1515c02 commit b7ce1d5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

data_structures/arrays/sliding_window_maximum.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
from collections import deque
2-
from typing import List
32

43

54
class SlidingWindowMaximum:
@@ -14,7 +13,7 @@ class SlidingWindowMaximum:
1413
[3, 3, 5, 5, 6, 7]
1514
"""
1615

17-
def max_sliding_window(self, nums: List[int], window_size: int) -> List[int]:
16+
def max_sliding_window(self, nums: list[int], window_size: int) -> list[int]:
1817
if not nums:
1918
return []
2019

0 commit comments

Comments
 (0)