Skip to content

Fix docstring for date.__repr__() #109422

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
Sep 15, 2023
Merged

Fix docstring for date.__repr__() #109422

merged 1 commit into from
Sep 15, 2023

Conversation

chrisyeh96
Copy link
Contributor

Prior to this pull request, the docstring for datetime.date.__repr__() incorrectly uses an example for the expected output of datetime.datetime.__repr()

This pull request fixes the docstring so that it accurately shows an example for datetime.date.__repr__()

@miss-islington
Copy link
Contributor

Thanks @chrisyeh96 for the PR, and @vstinner for merging it 🌮🎉.. I'm working now to backport this PR to: 3.11, 3.12.
🐍🍒⛏🤖

@miss-islington
Copy link
Contributor

Sorry, @chrisyeh96 and @vstinner, I could not cleanly backport this to 3.11 due to a conflict.
Please backport using cherry_picker on command line.
cherry_picker 5eec58a9e57383128ade7b527965b1efc474735b 3.11

@vstinner
Copy link
Member

Merged, thanks for your contribution :-)

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Sep 15, 2023
(cherry picked from commit 5eec58a)

Co-authored-by: Christopher Yeh <[email protected]>
@bedevere-app
Copy link

bedevere-app bot commented Sep 15, 2023

GH-109448 is a backport of this pull request to the 3.12 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.12 only security fixes label Sep 15, 2023
@bedevere-app
Copy link

bedevere-app bot commented Sep 15, 2023

GH-109449 is a backport of this pull request to the 3.11 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.11 only security fixes label Sep 15, 2023
vstinner added a commit that referenced this pull request Sep 15, 2023
Fix date.__repr__() docstring (#109422)

(cherry picked from commit 5eec58a)

Co-authored-by: Christopher Yeh <[email protected]>
Yhg1s pushed a commit that referenced this pull request Oct 2, 2023
Fix date.__repr__() docstring (GH-109422)
(cherry picked from commit 5eec58a)

Co-authored-by: Christopher Yeh <[email protected]>
@chrisyeh96 chrisyeh96 deleted the patch-4 branch November 7, 2023 01:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants