Skip to content
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

gh-108202: calendar: Document TextCalendar methods #127608

Open
wants to merge 13 commits into
base: main
Choose a base branch
from

Conversation

StanFromIreland
Copy link
Contributor

@StanFromIreland StanFromIreland commented Dec 4, 2024

@StanFromIreland StanFromIreland marked this pull request as ready for review December 5, 2024 16:27
@StanFromIreland

This comment was marked as outdated.

Copy link
Member

@ZeroIntensity ZeroIntensity left a comment

Choose a reason for hiding this comment

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

Some initial comments. (I'll tag Erlend again once I consider this ready from a triage standpoint.)

It's probably worth converting the phrase "string representation" into a reference to the str class.

Doc/library/calendar.rst Outdated Show resolved Hide resolved
Doc/library/calendar.rst Outdated Show resolved Hide resolved
Doc/library/calendar.rst Outdated Show resolved Hide resolved
Doc/library/calendar.rst Outdated Show resolved Hide resolved
Doc/library/calendar.rst Outdated Show resolved Hide resolved
@ZeroIntensity ZeroIntensity added needs backport to 3.12 bug and security fixes needs backport to 3.13 bugs and security fixes labels Dec 10, 2024
StanFromIreland and others added 5 commits December 10, 2024 16:04
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
As per ZeroIntenisities suggestion
@Antony3293 Antony3293 mentioned this pull request Dec 10, 2024
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Copy link
Member

@ZeroIntensity ZeroIntensity left a comment

Choose a reason for hiding this comment

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

Ok, I'll refrain from nitpicking. I don't know enough about calendar to give this a green check, so I'll just tag Erlend.

Doc/library/calendar.rst Outdated Show resolved Hide resolved
Doc/library/calendar.rst Outdated Show resolved Hide resolved
Doc/library/calendar.rst Outdated Show resolved Hide resolved
Doc/library/calendar.rst Outdated Show resolved Hide resolved
Doc/library/calendar.rst Outdated Show resolved Hide resolved
@eendebakpt
Copy link
Contributor

@StanFromIreland I approved the PR, but it takes the approval of a core developer before this can be merged. It is holiday season, so it could take some time

Co-authored-by: Pieter Eendebak <pieter.eendebak@gmail.com>
@ZeroIntensity
Copy link
Member

This has conflicts now.

@StanFromIreland
Copy link
Contributor Author

@ZeroIntensity I have asked @hugovk and @erlend-aasland what to do as they seem to have forgotten about this PR.

@hugovk
Copy link
Member

hugovk commented Dec 30, 2024

Sorry for creating a merge conflict. Can you resolve it? Use whatever text is the better, it doesn't necessarily have to be mine, or combine them.

(Remember to try and keep new text within 80 chars wide: https://devguide.python.org/documentation/markup/#use-of-whitespace)

@StanFromIreland
Copy link
Contributor Author

@hugovk It has been resolved. Please check for duplicate PRs in the future.

@erlend-aasland
Copy link
Contributor

erlend-aasland commented Dec 31, 2024

@StanFromIreland: Please try to keep your PRs focused; that is, one change per PR. This PRs title says the change is to document some methods which are missing documentation. But, in addition you are also tweaking formatting and adding new markups. Multiple types of changes makes reviewing, backporting, and bisecting (for code changes) harder.

Please restrict your PR to one change, and one change only.

Copy link
Contributor

@picnixz picnixz left a comment

Choose a reason for hiding this comment

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

I prefer "string" over the "str" type so please revert them but only in a single commit so that, if other reviewers want to add them back, you can just revert that commit.

Doc/library/calendar.rst Outdated Show resolved Hide resolved
Doc/library/calendar.rst Show resolved Hide resolved
Doc/library/calendar.rst Outdated Show resolved Hide resolved
Doc/library/calendar.rst Outdated Show resolved Hide resolved
Doc/library/calendar.rst Outdated Show resolved Hide resolved
@ZeroIntensity
Copy link
Member

I prefer "string" over the "str" type

I don't have much of a preference, I'm happy with just the phrase "string" as well.

@picnixz
Copy link
Contributor

picnixz commented Dec 31, 2024

It's mostly because the currently documented methods use "string" (without "representation") so I think it's better to be consistent. And because, "a string" is better read than "a str" (even if there is a markup, it's still an incomplete word)

@StanFromIreland
Copy link
Contributor Author

@erlend-aasland All done now. In the future do you prefer a PR for every function like hugokvs maybe it is easier to review?

@erlend-aasland
Copy link
Contributor

No, do not create one PR for every function. Just don't mix different types of changes in a PR (nor in an issue). This is all explained in clear text in the devguide.

@StanFromIreland
Copy link
Contributor Author

@erlend-aasland ok. Is this PR ok for you then? Are there any other changes you want before you review? This PR was originally focused on just the functions but then expanded with suggestions from other reviewers, I have reverted all of them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting core review docs Documentation in the Doc dir needs backport to 3.12 bug and security fixes needs backport to 3.13 bugs and security fixes skip news
Projects
Status: Todo
Development

Successfully merging this pull request may close these issues.

6 participants