Skip to content

Commit c24d1a1

Browse files
committed
Revert some updates
1 parent ab580de commit c24d1a1

File tree

7 files changed

+72
-72
lines changed

7 files changed

+72
-72
lines changed

Doc/library/code.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ build applications which provide an interactive interpreter prompt.
2323
``'__console__'`` and key ``'__doc__'`` set to ``None``.
2424

2525

26-
.. class:: InteractiveConsole(locals=None, filename="<console>", *, local_exit=False)
26+
.. class:: InteractiveConsole(locals=None, filename="<console>", local_exit=False)
2727

2828
Closely emulate the behavior of the interactive Python interpreter. This class
2929
builds on :class:`InteractiveInterpreter` and adds prompting using the familiar

Doc/library/codecs.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ any codec:
5555

5656
The full details for each codec can also be looked up directly:
5757

58-
.. function:: lookup(encoding, /)
58+
.. function:: lookup(encoding)
5959

6060
Looks up the codec info in the Python codec registry and returns a
6161
:class:`CodecInfo` object as defined below.
@@ -65,7 +65,7 @@ The full details for each codec can also be looked up directly:
6565
found, a :exc:`LookupError` is raised. Otherwise, the :class:`CodecInfo` object
6666
is stored in the cache and returned to the caller.
6767

68-
.. class:: CodecInfo(encode, decode, streamreader=None, streamwriter=None, incrementalencoder=None, incrementaldecoder=None, name=None, *, _is_text_encoding=None)
68+
.. class:: CodecInfo(encode, decode, streamreader=None, streamwriter=None, incrementalencoder=None, incrementaldecoder=None, name=None)
6969

7070
Codec details when looking up the codec registry. The constructor
7171
arguments are stored in attributes of the same name:
@@ -156,7 +156,7 @@ these additional functions which use :func:`lookup` for the codec lookup:
156156
Custom codecs are made available by registering a suitable codec search
157157
function:
158158

159-
.. function:: register(search_function, /)
159+
.. function:: register(search_function)
160160

161161
Register a codec search function. Search functions are expected to take one
162162
argument, being the encoding name in all lower case letters with hyphens
@@ -168,7 +168,7 @@ function:
168168
Hyphens and spaces are converted to underscore.
169169

170170

171-
.. function:: unregister(search_function, /)
171+
.. function:: unregister(search_function)
172172

173173
Unregister a codec search function and clear the registry's cache.
174174
If the search function is not registered, do nothing.
@@ -416,7 +416,7 @@ In addition, the following error handler is specific to the given codecs:
416416
The set of allowed values can be extended by registering a new named error
417417
handler:
418418

419-
.. function:: register_error(name, error_handler, /)
419+
.. function:: register_error(name, error_handler)
420420

421421
Register the error handling function *error_handler* under the name *name*.
422422
The *error_handler* argument will be called during encoding and decoding
@@ -442,7 +442,7 @@ handler:
442442
Previously registered error handlers (including the standard error handlers)
443443
can be looked up by name:
444444

445-
.. function:: lookup_error(name, /)
445+
.. function:: lookup_error(name)
446446

447447
Return the error handler previously registered under the name *name*.
448448

Doc/library/dataclasses.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ directly specified in the :class:`!InventoryItem` definition shown above.
4646
Module contents
4747
---------------
4848

49-
.. decorator:: dataclass(cls=None, /, *, init=True, repr=True, eq=True, order=False, unsafe_hash=False, frozen=False, match_args=True, kw_only=False, slots=False, weakref_slot=False)
49+
.. decorator:: dataclass(*, init=True, repr=True, eq=True, order=False, unsafe_hash=False, frozen=False, match_args=True, kw_only=False, slots=False, weakref_slot=False)
5050

5151
This function is a :term:`decorator` that is used to add generated
5252
:term:`special methods <special method>` to classes, as described below.

0 commit comments

Comments
 (0)