Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion stdlib/functools.pyi
Original file line numberDiff line numberDiff line change
Expand Up@@ -156,6 +156,11 @@ 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]):
if sys.version_info >= (3, 14):
__slots__ = ("func", "args", "keywords", "_phcount", "_merger", "__dict__", "__weakref__")
else:
__slots__ = ("func", "args", "keywords", "__dict__", "__weakref__")

@property
def func(self) -> Callable[..., _T]: ...
@property
Expand DownExpand Up@@ -255,7 +260,8 @@ def _make_key(

if sys.version_info >= (3, 14):
@final
class _PlaceholderType: ...
class _PlaceholderType:
__slots__ = ()

Placeholder: Final[_PlaceholderType]

Expand Down