Skip to content

Clarify argument types in datetime docs. #15459

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 24, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Doc/library/datetime.rst
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ systems.

.. class:: date(year, month, day)

All arguments are required. Arguments may be integers, in the following
All arguments are required. Arguments must be integers in the following
ranges:

* ``MINYEAR <= year <= MAXYEAR``
Expand Down Expand Up @@ -714,7 +714,7 @@ Constructor:
.. class:: datetime(year, month, day, hour=0, minute=0, second=0, microsecond=0, tzinfo=None, *, fold=0)

The year, month and day arguments are required. *tzinfo* may be ``None``, or an
instance of a :class:`tzinfo` subclass. The remaining arguments may be integers,
instance of a :class:`tzinfo` subclass. The remaining arguments must be integers
in the following ranges:

* ``MINYEAR <= year <= MAXYEAR``,
Expand Down Expand Up @@ -1439,7 +1439,7 @@ day, and subject to adjustment via a :class:`tzinfo` object.
.. class:: time(hour=0, minute=0, second=0, microsecond=0, tzinfo=None, *, fold=0)

All arguments are optional. *tzinfo* may be ``None``, or an instance of a
:class:`tzinfo` subclass. The remaining arguments may be integers, in the
:class:`tzinfo` subclass. The remaining arguments must be integers in the
following ranges:

* ``0 <= hour < 24``,
Expand Down