Fix FreeBusy.new() docstring referencing alarm instead of free/busy - #1503
Fix FreeBusy.new() docstring referencing alarm instead of free/busy#1503andycheng2018 wants to merge 12 commits into
Conversation
The FreeBusy.new() docstring summary was copied from the Alarm class and incorrectly described creating an alarm. Corrected it to reference the free/busy component. Verified the property structure against RFC 5545 section 3.6.4; the implementation already matches, only the docstring text was inaccurate. AI assistance: Claude Opus 4.5 (Anthropic), used via the web chat interface to help locate the issue, verify the property structure against RFC 5545, and draft the docstring correction. I reviewed and validated the change and take responsibility for it.
|
Profile summary: Full profile |
niccokunzmann
left a comment
There was a problem hiding this comment.
Hi, please do not use AI for this. Read through the other classes' doc strings and checkhow we name the components and be consistent with that.
…f alarm Aligns docstring structure with Event.new() convention (summary line + RFC reference line) while linking directly to RFC 5545 section 3.6.4 for precision, per review feedback.
|
Hi, thanks for the feedback. I've made changes based on the grammar/syntax I saw in event.py. Hope the new changes help! |
|
@andycheng2018 please address @niccokunzmann's comment #1503 (review). |
stevepiercy
left a comment
There was a problem hiding this comment.
Docstrings and news are OK, but still needs to address the naming convention issue that @niccokunzmann pointed out.
Matches how Event.new() refers to "the event" in its parameter docs. Also fixed the Raises: line, it was missing the :exc: role.
|
Hey, thanks for the feedback! I took another look at event.py and updated the docstring so the parameters say "of the free/busy" instead of "of the component" and other parameters to match the two. Let me know if this looks good. |
Co-authored-by: Steve Piercy <web@stevepiercy.com>
Co-authored-by: Steve Piercy <web@stevepiercy.com>
Replaced the RFC-citation sentence with an explicit list of required properties (UID and DTSTAMP), per stevepiercy's suggestion.
stevepiercy
left a comment
There was a problem hiding this comment.
One more minor improvement, and then I approve. Thanks for your patience!
Per stevepiercy's suggestion, note that UID and DTSTAMP may be set via the uid and stamp parameters.
|
No worries, thanks for walking me through this! |
Linked issue
newclass methods #1473Description
The
FreeBusy.new()docstring summary was copied from the Alarm class andincorrectly described creating an alarm. This corrects it to reference the
free/busy component.
I also verified the property required/optional structure for VFREEBUSY against
RFC 5545 §3.6.4, and the implementation already matches the specification, so
only the docstring summary text needed correcting.
This addresses the
src/icalendar/cal/free_busy.pyitem from the checklist in #1473.Checklist
/news, following the instructions in Change log entry format.Additional information
AI assistance: Claude Opus 4.5 (Anthropic), used via the web chat interface to
help locate the issue, verify the property structure against RFC 5545, and draft
the docstring correction. I reviewed and validated the change and take
responsibility for it. This is also disclosed in the commit message and the
changelog entry.