@@ -328,6 +328,14 @@ The :mod:`functools` module defines the following functions:
328328 Returning ``NotImplemented `` from the underlying comparison function for
329329 unrecognised types is now supported.
330330
331+ .. data :: Placeholder
332+
333+ A singleton object used as a sentinel to reserve a place
334+ for positional arguments when calling :func: `partial `
335+ and :func: `partialmethod `.
336+
337+ .. versionadded :: 3.14
338+
331339.. function :: partial(func, /, *args, **keywords)
332340
333341 Return a new :ref: `partial object<partial-objects> ` which when called
@@ -348,7 +356,7 @@ The :mod:`functools` module defines the following functions:
348356
349357 The :func: `partial ` is used for partial function application which "freezes"
350358 some portion of a function's arguments and/or keywords resulting in a new object
351- with a simplified signature. For example, :func: `partial ` can be used to create
359+ with a simplified signature. For example, :func: `partial ` can be used to create
352360 a callable that behaves like the :func: `int ` function where the *base * argument
353361 defaults to two:
354362
@@ -396,12 +404,6 @@ The :mod:`functools` module defines the following functions:
396404 .. versionchanged :: 3.14
397405 Added support for :data: `Placeholder ` in positional arguments.
398406
399- .. data :: Placeholder
400-
401- A singleton object used as a sentinel to reserve a place
402- for positional arguments when calling :func: `partial `
403- and :func: `partialmethod `.
404-
405407.. class :: partialmethod(func, /, *args, **keywords)
406408
407409 Return a new :class: `partialmethod ` descriptor which behaves
0 commit comments