Skip to content

Commit e95e837

Browse files
[3.12] gh-116281: Remove wrong '\' from '\*' in some doc signatures (GH-116282) (#116285)
gh-116281: Remove wrong '\' from '\*' in some doc signatures (GH-116282) (cherry picked from commit 4859ecb) Co-authored-by: HarryLHW <[email protected]>
1 parent 3f830ad commit e95e837

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

Doc/library/asyncio-stream.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ StreamWriter
347347
be resumed. When there is nothing to wait for, the :meth:`drain`
348348
returns immediately.
349349

350-
.. coroutinemethod:: start_tls(sslcontext, \*, server_hostname=None, \
350+
.. coroutinemethod:: start_tls(sslcontext, *, server_hostname=None, \
351351
ssl_handshake_timeout=None, ssl_shutdown_timeout=None)
352352

353353
Upgrade an existing stream-based connection to TLS.

Doc/library/enum.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ Data Types
170170
final *enum*, as well as creating the enum members, properly handling
171171
duplicates, providing iteration over the enum class, etc.
172172

173-
.. method:: EnumType.__call__(cls, value, names=None, \*, module=None, qualname=None, type=None, start=1, boundary=None)
173+
.. method:: EnumType.__call__(cls, value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
174174

175175
This method is called in two different ways:
176176

@@ -340,7 +340,7 @@ Data Types
340340
>>> PowersOfThree.SECOND.value
341341
9
342342

343-
.. method:: Enum.__init__(self, \*args, \**kwds)
343+
.. method:: Enum.__init__(self, *args, **kwds)
344344

345345
By default, does nothing. If multiple values are given in the member
346346
assignment, those values become separate arguments to ``__init__``; e.g.
@@ -351,7 +351,7 @@ Data Types
351351

352352
``Weekday.__init__()`` would be called as ``Weekday.__init__(self, 1, 'Mon')``
353353

354-
.. method:: Enum.__init_subclass__(cls, \**kwds)
354+
.. method:: Enum.__init_subclass__(cls, **kwds)
355355

356356
A *classmethod* that is used to further configure subsequent subclasses.
357357
By default, does nothing.
@@ -378,7 +378,7 @@ Data Types
378378
>>> Build('deBUG')
379379
<Build.DEBUG: 'debug'>
380380

381-
.. method:: Enum.__new__(cls, \*args, \**kwds)
381+
.. method:: Enum.__new__(cls, *args, **kwds)
382382

383383
By default, doesn't exist. If specified, either in the enum class
384384
definition or in a mixin class (such as ``int``), all values given

Doc/library/hashlib.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ More condensed:
121121
Constructors
122122
------------
123123

124-
.. function:: new(name[, data], \*, usedforsecurity=True)
124+
.. function:: new(name[, data], *, usedforsecurity=True)
125125

126126
Is a generic constructor that takes the string *name* of the desired
127127
algorithm as its first parameter. It also exists to allow access to the

0 commit comments

Comments
 (0)