-
-
Notifications
You must be signed in to change notification settings - Fork 405
Fix broken doc links in Calendar.new docstring - #1732
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: Mohammed-Ahmed7
🟢 No concerns found with user's profile.
🟢 No concerns found with recent PR activity.
🟢 No concerns found with recent issue activity.
For a more detailed report, run `gh-profiler Mohammed-Ahmed7`.
Full profile
GitHub user: Mohammed-Ahmed7
🟢 No concerns found with user's profile.
🟢 Account age: 1 year, 1 month
🟢 Profile information:
name: Mohammed Ahmed
company: Moah Media
blog: https://moah-media.de/
location: germany
Empty fields: email, bio
🟢 No concerns found with recent PR activity.
1 PR opened in the last 21 days.
0 opened against repos the user owns.
0 opened against repos in publicly associated orgs.
1 opened against external repos.
🟢 0 of 1 external PRs merged in the last 21 days.
🟢 0 of 1 external PRs closed without merging in the last 21 days.
🟢 No concerns found with recent issue activity.
🟢 No new issues opened in the last 21 days.
f535e65 to
97a025c
Compare
Availability was missing its full module path. DEFAULT_PRODID pointed to an undocumented constant; replaced with plain code formatting instead. AI: Claude Sonnet 5 (via Claude Code), used as a tutor to learn Sphinx link syntax and verify the build. I wrote, edited, and verified all changes myself.
97a025c to
051ecd4
Compare
@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.
@Mohammed-Ahmed7 thanks for your contribution. It made me think it would be shame not to link to DEFAULT_PRODID, so see what I suggested. Also there's a shorthand syntax, and the news should be updated to align with the suggestions. Would you please take care?
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.
Actually, let's document this value. Then the link works.
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 this change, and see my suggestion above.
https://github.com/collective/icalendar/pull/1732/changes#r3879155959
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.
See the "object only" syntax example at https://icalendar.readthedocs.io/en/latest/contribute/documentation/style-guide.html#cross-reference-python-objects.
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 put this on a single line, and update it to reflect the suggestions below.
stevepiercy
commented
Sep 6, 2026
@Mohammed-Ahmed7 would you please:
- Address my review Fix broken doc links in Calendar.new docstring #1732 (review)
- Resolve conflicts
- Update your branch against
main
Thank you!
Uh oh!
There was an error while loading. Please reload this page.
Linked issue
Description
Fixed two broken documentation links in the Calendar.new docstring
(calendar.py). The
Availabilityclass reference was missing itsfull module path, so Sphinx couldn't resolve it. The
DEFAULT_PRODIDreference pointed to an undocumented module-level constant with no
linkable target, so it was changed to plain code formatting instead —
confirmed against the style guide and issue #1072, neither of which
documents a way to link module-level constants.
Verified locally with a Sphinx nitpicky build: warnings dropped from
70 to 68, both references now render correctly. Also ran the full
test suite; two unrelated pre-existing failures were found (external
link rot in linkcheck, and a local timezone-database quirk on my
machine) — neither relates to this change.
No test added: this fix corrects a Sphinx cross-reference syntax
error in a docstring, which the pytest suite doesn't cover — it's
verified via the Sphinx nitpicky build instead (see above).
Checklist