Skip to content

Commit a47d169

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
1 parent a335214 commit a47d169

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

sandbox.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
from itertools import batched
22
from typing import reveal_type
3+
34
reveal_type(next(batched([0, 1], n=2, strict=True)))

stdlib/@tests/test_cases/itertools/check_batched.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from __future__ import annotations
22

3-
from typing_extensions import assert_type
43
import sys
4+
from typing_extensions import assert_type
55

66
if sys.version_info >= (3, 13):
77
from itertools import batched

stdlib/itertools.pyi

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -348,9 +348,7 @@ if sys.version_info >= (3, 12):
348348
@overload
349349
def __new__(cls, iterable: Iterable[_T], n: Literal[2], *, strict: Literal[True]) -> batched[tuple[_T, _T]]: ...
350350
@overload
351-
def __new__(
352-
cls, iterable: Iterable[_T], n: Literal[3], *, strict: Literal[True]
353-
) -> batched[tuple[_T, _T, _T]]: ...
351+
def __new__(cls, iterable: Iterable[_T], n: Literal[3], *, strict: Literal[True]) -> batched[tuple[_T, _T, _T]]: ...
354352
@overload
355353
def __new__(
356354
cls, iterable: Iterable[_T], n: Literal[4], *, strict: Literal[True]

0 commit comments

Comments
 (0)