-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
Trivial Change: Remove unhelpful doc in datetime.timedelta
#100164
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
Conversation
Most changes to Python require a NEWS entry. Please add it using the blurb_it web app or the blurb command-line tool. |
✅ Deploy Preview for python-cpython-preview ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@meawoppl - Thank you for your contribution! I don't think small changes like this should require a signed CLA, but it is probably easier to sign it with two clicks than to figure out how to make an exception. Please follow the instructions above at #100164 (comment). |
I don't really understand why you are seeing this at all. The docstring for
I am not super attached to the "Why? Because I felt like it" wording, but it is also kind of useful information to know that this was an arbitrary choice and not one that was the result of a great amount of deliberation. It's a guard against a future where changes to the structure of |
@pganssle I noticed it because some of the VSCode hover-for-help features show it as part of the docstring. Not sure why it isn't being masked.... The signature process produces a 500 error: |
@abalkin I signed the agreement. Also, I suspect this is below the "news entry" level of diff, but happy to update if not. |
Most changes to Python require a NEWS entry. Please add it using the blurb_it web app or the blurb command-line tool. |
I will leave it to @pganssle to make a final call on this. Even though git attributes the authorship to me, I suspect that it was @tim-one who wrote that docstring. We can compromise on moving the "unhelpful doc" to a |
Happy to change it up that way, just let me know if that is what is desired. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
I agree with @abalkin that the comment on rationale of having that representation can be moved to a separate comment below docstring, and maybe we can also improve it saying the original author found that representation useful/helpful.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
I use timedelta's often in my work, and it always makes me a little sad to see this when I mouse over to look at the docstring.