mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-16 02:51:28 +08:00
Add @disjoint_base decorator in the stdlib (#14599)
And fix some other new stubtest finds.
This commit is contained in:
1 parent
2565f34946
commit
e8ba06f710
55 files changed
+701
-307
No files matched your search
@@ -4,7 +4,7 @@ from _typeshed import SupportsAllComparisons, SupportsItems
|
||||
from collections.abc import Callable, Hashable, Iterable, Sized
|
||||
from types import GenericAlias
|
||||
from typing import Any, Final, Generic, Literal, NamedTuple, TypedDict, TypeVar, final, overload, type_check_only
|
||||
from typing_extensions import ParamSpec, Self, TypeAlias
|
||||
from typing_extensions import ParamSpec, Self, TypeAlias, disjoint_base
|
||||
|
||||
__all__ = [
|
||||
"update_wrapper",
|
||||
@@ -150,7 +150,7 @@ else:
|
||||
|
||||
def total_ordering(cls: type[_T]) -> type[_T]: ...
|
||||
def cmp_to_key(mycmp: Callable[[_T, _T], int]) -> Callable[[_T], SupportsAllComparisons]: ...
|
||||
|
||||
@disjoint_base
|
||||
class partial(Generic[_T]):
|
||||
@property
|
||||
def func(self) -> Callable[..., _T]: ...
|
||||
|
||||
Reference in new issue
Block a user