mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 04:54:47 +08:00
Enable flake8-pyi's Y037 (#9686)
This commit is contained in:
@@ -6,20 +6,7 @@ from collections.abc import Callable, Container, Iterable, Mapping, Sequence, Se
|
||||
from contextlib import AbstractContextManager
|
||||
from re import Pattern
|
||||
from types import TracebackType
|
||||
from typing import (
|
||||
Any,
|
||||
AnyStr,
|
||||
ClassVar,
|
||||
Generic,
|
||||
NamedTuple,
|
||||
NoReturn,
|
||||
Protocol,
|
||||
SupportsAbs,
|
||||
SupportsRound,
|
||||
TypeVar,
|
||||
Union,
|
||||
overload,
|
||||
)
|
||||
from typing import Any, AnyStr, ClassVar, Generic, NamedTuple, NoReturn, Protocol, SupportsAbs, SupportsRound, TypeVar, overload
|
||||
from typing_extensions import ParamSpec, TypeAlias
|
||||
from warnings import WarningMessage
|
||||
|
||||
@@ -82,9 +69,9 @@ class SkipTest(Exception):
|
||||
class _SupportsAbsAndDunderGE(SupportsDunderGE[Any], SupportsAbs[Any], Protocol): ...
|
||||
|
||||
if sys.version_info >= (3, 10):
|
||||
_IsInstanceClassInfo: TypeAlias = Union[type, UnionType, tuple[type | UnionType | tuple[Any, ...], ...]]
|
||||
_IsInstanceClassInfo: TypeAlias = type | UnionType | tuple[type | UnionType | tuple[Any, ...], ...]
|
||||
else:
|
||||
_IsInstanceClassInfo: TypeAlias = Union[type, tuple[type | tuple[Any, ...], ...]]
|
||||
_IsInstanceClassInfo: TypeAlias = type | tuple[type | tuple[Any, ...], ...]
|
||||
|
||||
class TestCase:
|
||||
failureException: type[BaseException]
|
||||
|
||||
Reference in New Issue
Block a user