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.
This commit is contained in:
John Belmonte 2023-02-01 19:01:28 +09:00 committed by GitHub
parent 76efcb4093
commit 75227fba1d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -975,7 +975,7 @@ Other constructors, all class methods:
microsecond of the result are all 0, and :attr:`.tzinfo` is ``None``.
.. classmethod:: datetime.combine(date, time, tzinfo=self.tzinfo)
.. classmethod:: datetime.combine(date, time, tzinfo=time.tzinfo)
Return a new :class:`.datetime` object whose date components are equal to the
given :class:`date` object's, and whose time components