Enable flake8-pyi's Y037 (#9686)

This commit is contained in:
Alex Waygood
2023-02-07 03:01:02 +00:00
committed by GitHub
parent c4c4bee8aa
commit 0ef9c3f8e8
38 changed files with 119 additions and 201 deletions

View File

@@ -1,9 +1,9 @@
from collections.abc import Callable, Hashable
from typing import Any, SupportsInt, TypeVar, Union
from typing import Any, SupportsInt, TypeVar
from typing_extensions import TypeAlias
_T = TypeVar("_T")
_Reduce: TypeAlias = Union[tuple[Callable[..., _T], tuple[Any, ...]], tuple[Callable[..., _T], tuple[Any, ...], Any | None]]
_Reduce: TypeAlias = tuple[Callable[..., _T], tuple[Any, ...]] | tuple[Callable[..., _T], tuple[Any, ...], Any | None]
__all__ = ["pickle", "constructor", "add_extension", "remove_extension", "clear_extension_cache"]