mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-16 00:37:10 +08:00
Enable flake8-pyi's Y037 (#9686)
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
from collections.abc import Callable, Iterable
|
||||
from typing import TypeVar, Union
|
||||
from typing import TypeVar
|
||||
from typing_extensions import TypeAlias
|
||||
|
||||
_FormatCheckCallable: TypeAlias = Callable[[object], bool]
|
||||
_F = TypeVar("_F", bound=_FormatCheckCallable)
|
||||
_RaisesType: TypeAlias = Union[type[Exception], tuple[type[Exception], ...]]
|
||||
_RaisesType: TypeAlias = type[Exception] | tuple[type[Exception], ...]
|
||||
|
||||
class FormatChecker:
|
||||
checkers: dict[str, tuple[_FormatCheckCallable, _RaisesType]]
|
||||
|
||||
Reference in New Issue
Block a user