mirror of
https://github.com/python/cpython.git
synced 2025-09-22 08:23:36 +00:00
gh-116281: Remove wrong '\' from '\*' in some doc signatures (#116282)
This commit is contained in:
parent
4d3ee77aef
commit
4859ecb860
3 changed files with 6 additions and 6 deletions
|
@ -347,7 +347,7 @@ StreamWriter
|
||||||
be resumed. When there is nothing to wait for, the :meth:`drain`
|
be resumed. When there is nothing to wait for, the :meth:`drain`
|
||||||
returns immediately.
|
returns immediately.
|
||||||
|
|
||||||
.. coroutinemethod:: start_tls(sslcontext, \*, server_hostname=None, \
|
.. coroutinemethod:: start_tls(sslcontext, *, server_hostname=None, \
|
||||||
ssl_handshake_timeout=None, ssl_shutdown_timeout=None)
|
ssl_handshake_timeout=None, ssl_shutdown_timeout=None)
|
||||||
|
|
||||||
Upgrade an existing stream-based connection to TLS.
|
Upgrade an existing stream-based connection to TLS.
|
||||||
|
|
|
@ -170,7 +170,7 @@ Data Types
|
||||||
final *enum*, as well as creating the enum members, properly handling
|
final *enum*, as well as creating the enum members, properly handling
|
||||||
duplicates, providing iteration over the enum class, etc.
|
duplicates, providing iteration over the enum class, etc.
|
||||||
|
|
||||||
.. method:: EnumType.__call__(cls, value, names=None, \*, module=None, qualname=None, type=None, start=1, boundary=None)
|
.. method:: EnumType.__call__(cls, value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
|
||||||
|
|
||||||
This method is called in two different ways:
|
This method is called in two different ways:
|
||||||
|
|
||||||
|
@ -350,7 +350,7 @@ Data Types
|
||||||
>>> PowersOfThree.SECOND.value
|
>>> PowersOfThree.SECOND.value
|
||||||
9
|
9
|
||||||
|
|
||||||
.. method:: Enum.__init__(self, \*args, \**kwds)
|
.. method:: Enum.__init__(self, *args, **kwds)
|
||||||
|
|
||||||
By default, does nothing. If multiple values are given in the member
|
By default, does nothing. If multiple values are given in the member
|
||||||
assignment, those values become separate arguments to ``__init__``; e.g.
|
assignment, those values become separate arguments to ``__init__``; e.g.
|
||||||
|
@ -361,7 +361,7 @@ Data Types
|
||||||
|
|
||||||
``Weekday.__init__()`` would be called as ``Weekday.__init__(self, 1, 'Mon')``
|
``Weekday.__init__()`` would be called as ``Weekday.__init__(self, 1, 'Mon')``
|
||||||
|
|
||||||
.. method:: Enum.__init_subclass__(cls, \**kwds)
|
.. method:: Enum.__init_subclass__(cls, **kwds)
|
||||||
|
|
||||||
A *classmethod* that is used to further configure subsequent subclasses.
|
A *classmethod* that is used to further configure subsequent subclasses.
|
||||||
By default, does nothing.
|
By default, does nothing.
|
||||||
|
@ -388,7 +388,7 @@ Data Types
|
||||||
>>> Build('deBUG')
|
>>> Build('deBUG')
|
||||||
<Build.DEBUG: 'debug'>
|
<Build.DEBUG: 'debug'>
|
||||||
|
|
||||||
.. method:: Enum.__new__(cls, \*args, \**kwds)
|
.. method:: Enum.__new__(cls, *args, **kwds)
|
||||||
|
|
||||||
By default, doesn't exist. If specified, either in the enum class
|
By default, doesn't exist. If specified, either in the enum class
|
||||||
definition or in a mixin class (such as ``int``), all values given
|
definition or in a mixin class (such as ``int``), all values given
|
||||||
|
|
|
@ -121,7 +121,7 @@ More condensed:
|
||||||
Constructors
|
Constructors
|
||||||
------------
|
------------
|
||||||
|
|
||||||
.. function:: new(name[, data], \*, usedforsecurity=True)
|
.. function:: new(name[, data], *, usedforsecurity=True)
|
||||||
|
|
||||||
Is a generic constructor that takes the string *name* of the desired
|
Is a generic constructor that takes the string *name* of the desired
|
||||||
algorithm as its first parameter. It also exists to allow access to the
|
algorithm as its first parameter. It also exists to allow access to the
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue