Run mypy and pyright on our py312 stubs in CI (#10119)

This commit is contained in:
Alex Waygood
2023-04-30 15:31:08 +01:00
committed by GitHub
parent e0db6d2edd
commit 2c3449694b
7 changed files with 18 additions and 9 deletions

View File

@@ -272,7 +272,7 @@ if sys.version_info >= (3, 10):
def __next__(self) -> _T_co: ...
if sys.version_info >= (3, 12):
class batched(Iterator[_T_co], Generic[_T_co]):
class batched(Iterator[tuple[_T_co, ...]], Generic[_T_co]):
def __new__(cls, iterable: Iterable[_T_co], n: int) -> Self: ...
def __iter__(self) -> Self: ...
def __next__(self) -> tuple[_T_co, ...]: ...