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

Clarify argument types in datetime docs. #15459

merged 1 commit into from
Aug 24, 2019

Conversation

jugmac00
Copy link
Contributor

@jugmac00 jugmac00 commented Aug 24, 2019

"Arguments may be integers... " could be misunderstand as they also
could be strings.

New wording makes it clear that arguments have to be integers.

modified: Doc/library/datetime.rst

Automerge-Triggered-By: @pganssle

@jugmac00
Copy link
Contributor Author

Also see #15008

Copy link
Member

@brandtbucher brandtbucher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can probably skip issue and skip news. Do you mind changing the title to be more descriptive, though? Maybe something like "Clarify argument types in datetime docs."

"Arguments may be integers... " could be misunderstand as they also
could be strings.

New wording makes it clear that arguments have to be integers.

modified:   Doc/library/datetime.rst
@jugmac00
Copy link
Contributor Author

@brandtbucher Thank you for the review. Changed the title as you required.

@brandtbucher
Copy link
Member

brandtbucher commented Aug 24, 2019

@jugmac00 Sorry, I should have been clearer. I actually meant the GitHub PR title. The commit message is fine!

@jugmac00 jugmac00 changed the title Improve wording. Clarify argument types in datetime docs. Aug 24, 2019
@jugmac00
Copy link
Contributor Author

Updated the title of the PR.

I have not touched the commit message again - if you want me to switch back to "Improve wording." title - just give a quick note, otherwise I hope the PR is fine now :-)

Thanks for your time and effort!

Copy link
Member

@ned-deily ned-deily left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Awaiting review by one of the datetime core developers (@abalkin or @pganssle).

Copy link
Member

@pganssle pganssle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks @jugmac00.

Sorry I accidentally closed this PR, I actually have no idea how that happened.

@miss-islington
Copy link
Contributor

@jugmac00: Status check is done, and it's a success ✅ .

@miss-islington miss-islington merged commit c5218fc into python:master Aug 24, 2019
@miss-islington
Copy link
Contributor

Thanks @jugmac00 for the PR 🌮🎉.. I'm working now to backport this PR to: 3.7, 3.8.
🐍🍒⛏🤖

@bedevere-bot
Copy link

GH-15472 is a backport of this pull request to the 3.8 branch.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Aug 24, 2019
"Arguments may be integers... " could be misunderstand as they also
could be strings.

New wording makes it clear that arguments have to be integers.

modified:   Doc/library/datetime.rst

Automerge-Triggered-By: @pganssle
(cherry picked from commit c5218fc)

Co-authored-by: Jürgen Gmach <juergen.gmach@googlemail.com>
@bedevere-bot
Copy link

GH-15473 is a backport of this pull request to the 3.7 branch.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Aug 24, 2019
"Arguments may be integers... " could be misunderstand as they also
could be strings.

New wording makes it clear that arguments have to be integers.

modified:   Doc/library/datetime.rst

Automerge-Triggered-By: @pganssle
(cherry picked from commit c5218fc)

Co-authored-by: Jürgen Gmach <juergen.gmach@googlemail.com>
@jugmac00 jugmac00 deleted the improve-wording branch August 24, 2019 19:54
miss-islington added a commit that referenced this pull request Aug 24, 2019
"Arguments may be integers... " could be misunderstand as they also
could be strings.

New wording makes it clear that arguments have to be integers.

modified:   Doc/library/datetime.rst



Automerge-Triggered-By: @pganssle
(cherry picked from commit c5218fc)


Co-authored-by: Jürgen Gmach <juergen.gmach@googlemail.com>

Automerge-Triggered-By: @pganssle
miss-islington added a commit that referenced this pull request Aug 24, 2019
"Arguments may be integers... " could be misunderstand as they also
could be strings.

New wording makes it clear that arguments have to be integers.

modified:   Doc/library/datetime.rst

Automerge-Triggered-By: @pganssle
(cherry picked from commit c5218fc)

Co-authored-by: Jürgen Gmach <juergen.gmach@googlemail.com>
lisroach pushed a commit to lisroach/cpython that referenced this pull request Sep 10, 2019
"Arguments may be integers... " could be misunderstand as they also
could be strings.

New wording makes it clear that arguments have to be integers.

modified:   Doc/library/datetime.rst



Automerge-Triggered-By: @pganssle
DinoV pushed a commit to DinoV/cpython that referenced this pull request Jan 14, 2020
"Arguments may be integers... " could be misunderstand as they also
could be strings.

New wording makes it clear that arguments have to be integers.

modified:   Doc/library/datetime.rst



Automerge-Triggered-By: @pganssle
websurfer5 pushed a commit to websurfer5/cpython that referenced this pull request Jul 20, 2020
"Arguments may be integers... " could be misunderstand as they also
could be strings.

New wording makes it clear that arguments have to be integers.

modified:   Doc/library/datetime.rst



Automerge-Triggered-By: @pganssle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir skip issue skip news
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants