-
-
Notifications
You must be signed in to change notification settings - Fork 405
docs: convert docstrings to Google style in parser_tools and component (#1072) - #1749
docs: convert docstrings to Google style in parser_tools and component (#1072) #1749AhmadBilalDSA wants to merge 20 commits into
Conversation
This pull request did not pass quality checks and AI use is suspected. Please review Contribute and make any necessary amendments.
Profile summary:
GitHub user: AhmadBilalDSA
🔴 Significant concerns found with user's profile.
🟡 Some concerns found with recent PR activity.
🟢 No concerns found with recent issue activity.
For a more detailed report, run `gh-profiler AhmadBilalDSA`.
Full profile
GitHub user: AhmadBilalDSA
🔴 Significant concerns found with user's profile.
🔴 Account age: a month
🟢 Profile information:
name: Ahmad Bilal
location: Pakistan
email: kierninja@gmail.com
bio: Data Analyst & Analytics Specialist bridging business intelligence and data engineering. Focused on Python, SQL, DuckDB/Polars, and building automated data work
linkedin: https://linkedin.com/in/AhmadBilalDES
Empty fields: company, blog
🟡 Some concerns found with recent PR activity.
40 PRs opened in the last 21 days.
9 opened against repos the user owns.
0 opened against repos in publicly associated orgs.
31 opened against external repos.
🟡 7 of 31 external PRs closed without merging in the last 21 days.
🟢 No concerns found with recent issue activity.
5 new issues opened in the last 21 days.
3 opened in repos the user owns.
0 opened in repos in publicly associated orgs.
2 opened in external repos.
🟢 0 external issues closed as NOT_PLANNED.
🟢 0 external issues opened with the same title.
Documentation build overview
📚 icalendar | 🛠️ Build #34420906 | 📁 Comparing 863d389 against latest (acbee8c)
32 files changed · ± 32 modified
± Modified
genindex.htmlcontribute/development.html_modules/icalendar/attr.html_modules/icalendar/param.html_modules/icalendar/parser_tools.htmlcontribute/documentation/style-guide.htmlreference/api/icalendar.cal.available.htmlreference/api/icalendar.cal.component.htmlreference/api/icalendar.cal.event.htmlreference/api/icalendar.cal.free_busy.html- and 22 more...
AhmadBilalDSA
commented
Sep 1, 2026
Hi @stevepiercy @niccokunzmann,
I have added the changelog entry to resolve the changelog check.
Regarding the bot tag: this PR is strictly scoped to converting docstrings in parser_tools.py and cal/component.py to Google Python Style for #1072, with all tests passing locally via pytest.
Please let me know if you would like any adjustments to the wording or style.
@stevepiercy
stevepiercy
left a comment
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.
Please revert all section headings of Args back to Parameters. See Docstring structure and the note under Parameters for an explanation. Thank you!
@angatha
angatha
left a comment
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.
Just a small note: You wrote "Fixes #xxx". That would close the Issue once th PR is merged. Since the issue is (most likely) not done with this, use "See #xxx" instead. That will link the issue but does not close it.
coverage: 97.562%. remained the same — AhmadBilalDSA:fix/typing-prop-components into collective:main
6156865 to
b3d3465
Compare
Thanks for the feedback @stevepiercy and @angatha Reverted all Args: headings back to Parameters: across parser_tools.py and cal/component.py per the documentation guidelines. Updated the PR description from Fixes #1072 to See #1072. Formatted with ruff to ensure clean CI passing. Verified all unit tests pass locally with pytest."
stevepiercy
commented
Sep 6, 2026
@AhmadBilalDSA your edit to the description is worse. Please change it as @angatha directed, and see https://github.com/collective/icalendar/blob/main/.github/pull_request_template.md?plain=1#L14-L35 for instructions.
@stevepiercy
stevepiercy
left a comment
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.
@AhmadBilalDSA thanks for your first contribution to icalendar! While reviewing your changes, I found old things that also needed to be addressed that were overlooked. Would you please take care? Thank you!
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.
Co-authored-by: Steve Piercy <web@stevepiercy.com>
Co-authored-by: Steve Piercy <web@stevepiercy.com>
Co-authored-by: Steve Piercy <web@stevepiercy.com>
Co-authored-by: Steve Piercy <web@stevepiercy.com>
Co-authored-by: Steve Piercy <web@stevepiercy.com>
Co-authored-by: Steve Piercy <web@stevepiercy.com>
Co-authored-by: Steve Piercy <web@stevepiercy.com>
Co-authored-by: Steve Piercy <web@stevepiercy.com>
Co-authored-by: Steve Piercy <web@stevepiercy.com>
AhmadBilalDSA
commented
Sep 6, 2026
Hi @stevepiercy @angatha,
- Updated the PR description to use
See #1072. - Renamed the changelog fragment to
news/1749.documentation.rst. - Applied all requested docstring grammar and formatting improvements across
cal/component.pyandparser_tools.py. - Added type hints and docstring updates to
Component.walk(name: str | None = None, select: Callable[[Component], bool] = __identity) -> list[Component]) per Add type hints [beginner, Python, typing] #938 .
Uh oh!
There was an error while loading. Please reload this page.
Summary of changes
Converts legacy docstrings in
src/icalendar/parser_tools.pyandsrc/icalendar/cal/component.pyto Google Python Style withParameters:andReturns:sections per project documentation guidelines.See #1072
Checklist