]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
datetime.rst: fix combine() signature (#101490)
authorJohn Belmonte <john@neggie.net>
Wed, 1 Feb 2023 10:01:28 +0000 (19:01 +0900)
committerGitHub <noreply@github.com>
Wed, 1 Feb 2023 10:01:28 +0000 (14:01 +0400)
commit75227fba1dd1683289d90ada7abba237bff55d14
tree2ac8d9c83437ffeae8aa5cfdfab34f05411ee33e
parent76efcb40930d1584e8706f015d0e5475fb16acb5
datetime.rst: fix combine() signature (#101490)

The default `tzinfo` param of the `combine()` signature pseudocode was erroneously `self.tzinfo`.

`self` has no meaning in the context of a classmethod, and the datetime class itself has no `tzinfo` attribute.  The correct default pseudocode is `time.tzinfo`, reflecting that the default is the `tzinfo` attribute of the `time` parameter.
Doc/library/datetime.rst