[Python-checkins] [doc] Fix missing commas in signatures (GH-23693)

miss-islington webhook-mailer at python.org
Tue Dec 29 07:28:55 EST 2020


https://github.com/python/cpython/commit/8f9313c83f74ff662985085cd5e7a8e4b3d8df3b
commit: 8f9313c83f74ff662985085cd5e7a8e4b3d8df3b
branch: 3.8
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: miss-islington <31488909+miss-islington at users.noreply.github.com>
date: 2020-12-29T04:28:47-08:00
summary:

[doc] Fix missing commas in signatures (GH-23693)


* Fix star in signatures

* Fix comma in signatures
(cherry picked from commit 60eccd095624f39195cc5ae0b49a59022bbbb028)

Co-authored-by: Andre Delfino <adelfino at gmail.com>

files:
M Doc/library/datetime.rst
M Doc/library/email.contentmanager.rst

diff --git a/Doc/library/datetime.rst b/Doc/library/datetime.rst
index b733c4406af71..5ab3cc020c3f6 100644
--- a/Doc/library/datetime.rst
+++ b/Doc/library/datetime.rst
@@ -1215,7 +1215,7 @@ Instance methods:
 
 .. method:: datetime.replace(year=self.year, month=self.month, day=self.day, \
    hour=self.hour, minute=self.minute, second=self.second, microsecond=self.microsecond, \
-   tzinfo=self.tzinfo, * fold=0)
+   tzinfo=self.tzinfo, *, fold=0)
 
    Return a datetime with the same attributes, except for those attributes given
    new values by whichever keyword arguments are specified. Note that
@@ -1779,7 +1779,7 @@ Other constructor:
 Instance methods:
 
 .. method:: time.replace(hour=self.hour, minute=self.minute, second=self.second, \
-   microsecond=self.microsecond, tzinfo=self.tzinfo, * fold=0)
+   microsecond=self.microsecond, tzinfo=self.tzinfo, *, fold=0)
 
    Return a :class:`.time` with the same value, except for those attributes given
    new values by whichever keyword arguments are specified. Note that
diff --git a/Doc/library/email.contentmanager.rst b/Doc/library/email.contentmanager.rst
index e09c7c0e402bb..918fc55677e72 100644
--- a/Doc/library/email.contentmanager.rst
+++ b/Doc/library/email.contentmanager.rst
@@ -116,7 +116,7 @@ Currently the email package provides only one concrete content manager,
       decoding the payload to unicode.  The default error handler is
       ``replace``.
 
-   .. method:: set_content(msg, <'str'>, subtype="plain", charset='utf-8' \
+   .. method:: set_content(msg, <'str'>, subtype="plain", charset='utf-8', \
                            cte=None, \
                            disposition=None, filename=None, cid=None, \
                            params=None, headers=None)



More information about the Python-checkins mailing list