From a18fcb7698a1dc68de98de1aa4f5554c79cec3c7 Mon Sep 17 00:00:00 2001 From: Dhruva Kumar Date: Tue, 2 Jun 2026 22:09:31 +0530 Subject: [PATCH] Fix type hint consistency in docstring Updated List[int] to list[int] in docstring to match Python 3 type hints. --- data_structures/arrays/rotate_array.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data_structures/arrays/rotate_array.py b/data_structures/arrays/rotate_array.py index d5ce4b4078b3..39486271ea68 100644 --- a/data_structures/arrays/rotate_array.py +++ b/data_structures/arrays/rotate_array.py @@ -3,11 +3,11 @@ def rotate_array(arr: list[int], steps: int) -> list[int]: Rotates a list to the right by steps positions. Parameters: - arr (List[int]): The list of integers to rotate. + arr (list[int]): The list of integers to rotate. steps (int): Number of positions to rotate. Can be negative for left rotation. Returns: - List[int]: Rotated list. + list[int]: Rotated list. Examples: >>> rotate_array([1, 2, 3, 4, 5], 2)