From 78ca9c739038f39402de70d7f1f61dd172bfa0c5 Mon Sep 17 00:00:00 2001 From: Alex Waygood Date: Mon, 3 Oct 2022 10:34:44 -0700 Subject: [PATCH] Bump mypy to 0.982 (#8831) --- requirements-tests.txt | 2 +- stdlib/builtins.pyi | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/requirements-tests.txt b/requirements-tests.txt index a498d6f9b..40c86aebc 100644 --- a/requirements-tests.txt +++ b/requirements-tests.txt @@ -5,7 +5,7 @@ flake8-bugbear==22.7.1 # must match .pre-commit-config.yaml flake8-noqa==1.2.9 # must match .pre-commit-config.yaml flake8-pyi==22.8.2 # must match .pre-commit-config.yaml isort==5.10.1 # must match .pre-commit-config.yaml -mypy==0.981 +mypy==0.982 packaging==21.3 pathspec pycln==2.1.1 # must match .pre-commit-config.yaml diff --git a/stdlib/builtins.pyi b/stdlib/builtins.pyi index a5713fbc4..baa7f15a7 100644 --- a/stdlib/builtins.pyi +++ b/stdlib/builtins.pyi @@ -1951,7 +1951,7 @@ if sys.version_info >= (3, 11): @overload def subgroup(self: Self, __condition: Callable[[_BaseExceptionT_co], bool]) -> Self | None: ... @overload - def split( # type: ignore[misc] # complaints about overlapping overloads + def split( self: Self, __condition: type[_BaseExceptionT] | tuple[type[_BaseExceptionT], ...] ) -> tuple[BaseExceptionGroup[_BaseExceptionT] | None, Self | None]: ... @overload @@ -1971,7 +1971,7 @@ if sys.version_info >= (3, 11): @overload def subgroup(self: Self, __condition: Callable[[_ExceptionT_co], bool]) -> Self | None: ... @overload # type: ignore[override] - def split( # type: ignore[misc] # complaints about overlapping overloads + def split( self: Self, __condition: type[_ExceptionT] | tuple[type[_ExceptionT], ...] ) -> tuple[ExceptionGroup[_ExceptionT] | None, Self | None]: ... @overload