From 3b6925b9557dfe4baffe7f21ce8126ea86336faa Mon Sep 17 00:00:00 2001 From: Adam Hitchcock Date: Wed, 5 Aug 2020 17:35:22 -0700 Subject: [PATCH] mark deque.rotate arg as having a default (#4386) --- stdlib/2/collections.pyi | 2 +- stdlib/3/collections/__init__.pyi | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/stdlib/2/collections.pyi b/stdlib/2/collections.pyi index 1b26c87df..e8a34ea51 100644 --- a/stdlib/2/collections.pyi +++ b/stdlib/2/collections.pyi @@ -57,7 +57,7 @@ class deque(Sized, Iterable[_T], Reversible[_T], Generic[_T]): def popleft(self) -> _T: ... def remove(self, value: _T) -> None: ... def reverse(self) -> None: ... - def rotate(self, n: int) -> None: ... + def rotate(self, n: int = ...) -> None: ... def __len__(self) -> int: ... def __iter__(self) -> Iterator[_T]: ... def __str__(self) -> str: ... diff --git a/stdlib/3/collections/__init__.pyi b/stdlib/3/collections/__init__.pyi index 06b0246b7..dae34a0a5 100644 --- a/stdlib/3/collections/__init__.pyi +++ b/stdlib/3/collections/__init__.pyi @@ -216,7 +216,7 @@ class deque(MutableSequence[_T], Generic[_T]): def popleft(self) -> _T: ... def remove(self, value: _T) -> None: ... def reverse(self) -> None: ... - def rotate(self, n: int) -> None: ... + def rotate(self, n: int = ...) -> None: ... def __len__(self) -> int: ... def __iter__(self) -> Iterator[_T]: ... def __str__(self) -> str: ...