Skip to content

Commit 3fc1eeb

Browse files
committed
1 parent 3e951ce commit 3fc1eeb

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

stdlib/functools.pyi

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,11 @@ def total_ordering(cls: type[_T]) -> type[_T]: ...
156156
def cmp_to_key(mycmp: Callable[[_T, _T], int]) -> Callable[[_T], SupportsAllComparisons]: ...
157157
@disjoint_base
158158
class partial(Generic[_T]):
159+
if sys.version_info >= (3, 14):
160+
__slots__ = ("func", "args", "keywords", "_phcount", "_merger", "__dict__", "__weakref__")
161+
else:
162+
__slots__ = ("func", "args", "keywords", "__dict__", "__weakref__")
163+
159164
@property
160165
def func(self) -> Callable[..., _T]: ...
161166
@property
@@ -255,7 +260,8 @@ def _make_key(
255260

256261
if sys.version_info >= (3, 14):
257262
@final
258-
class _PlaceholderType: ...
263+
class _PlaceholderType:
264+
__slots__ = ()
259265

260266
Placeholder: Final[_PlaceholderType]
261267

0 commit comments

Comments
 (0)