mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-21 11:21:19 +08:00
Bump mypy to 0.981 (#8796)
This commit is contained in:
@@ -1952,7 +1952,7 @@ if sys.version_info >= (3, 11):
|
||||
@overload
|
||||
def subgroup(self: Self, __condition: Callable[[_BaseExceptionT_co], bool]) -> Self | None: ...
|
||||
@overload
|
||||
def split(
|
||||
def split( # type: ignore[misc] # complaints about overlapping overloads
|
||||
self: Self, __condition: type[_BaseExceptionT] | tuple[type[_BaseExceptionT], ...]
|
||||
) -> tuple[BaseExceptionGroup[_BaseExceptionT] | None, Self | None]: ...
|
||||
@overload
|
||||
@@ -1972,7 +1972,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(
|
||||
def split( # type: ignore[misc] # complaints about overlapping overloads
|
||||
self: Self, __condition: type[_ExceptionT] | tuple[type[_ExceptionT], ...]
|
||||
) -> tuple[ExceptionGroup[_ExceptionT] | None, Self | None]: ...
|
||||
@overload
|
||||
|
||||
@@ -41,6 +41,9 @@ class _EntryPointBase(NamedTuple):
|
||||
|
||||
class EntryPoint(_EntryPointBase):
|
||||
pattern: ClassVar[Pattern[str]]
|
||||
if sys.version_info >= (3, 11):
|
||||
def __init__(self, name: str, value: str, group: str) -> None: ...
|
||||
|
||||
def load(self) -> Any: ... # Callable[[], Any] or an importable module
|
||||
@property
|
||||
def extras(self) -> list[str]: ...
|
||||
|
||||
Reference in New Issue
Block a user