]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.12] gh-116281: Remove wrong '\' from '\*' in some doc signatures (GH-116282) ...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 3 Mar 2024 19:42:22 +0000 (20:42 +0100)
committerGitHub <noreply@github.com>
Sun, 3 Mar 2024 19:42:22 +0000 (14:42 -0500)
gh-116281: Remove wrong '\' from '\*' in some doc signatures (GH-116282)
(cherry picked from commit 4859ecb8609b51e2f6b8fb1b295e9ee0f83e1be6)

Co-authored-by: HarryLHW <123lhw321@gmail.com>
Doc/library/asyncio-stream.rst
Doc/library/enum.rst
Doc/library/hashlib.rst

index 3ce6f4fa7d7e1e11f6d8a73f5f8dd98e5525e3f9..0b384eb95c17ab8a36a9f6a6e9b1151294382db4 100644 (file)
@@ -347,7 +347,7 @@ StreamWriter
       be resumed.  When there is nothing to wait for, the :meth:`drain`
       returns immediately.
 
-   .. coroutinemethod:: start_tls(sslcontext, \*, server_hostname=None, \
+   .. coroutinemethod:: start_tls(sslcontext, *, server_hostname=None, \
                           ssl_handshake_timeout=None, ssl_shutdown_timeout=None)
 
       Upgrade an existing stream-based connection to TLS.
index a03961b9a1ebceb884f8b5154955dac801aabb59..28dae4288d3c05f9eaa8581fc890f38084431e89 100644 (file)
@@ -170,7 +170,7 @@ Data Types
    final *enum*, as well as creating the enum members, properly handling
    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:
 
@@ -340,7 +340,7 @@ Data Types
          >>> PowersOfThree.SECOND.value
          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
       assignment, those values become separate arguments to ``__init__``; e.g.
@@ -351,7 +351,7 @@ Data Types
 
       ``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.
       By default, does nothing.
@@ -378,7 +378,7 @@ Data Types
          >>> Build('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
       definition or in a mixin class (such as ``int``), all values given
index eb650c180ddbb492a9b3a64c6caf4bd315b13884..8785bb7d4b643a469d693e1eebf7987919a17f02 100644 (file)
@@ -121,7 +121,7 @@ More condensed:
 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
    algorithm as its first parameter.  It also exists to allow access to the