Skip to content

docs: replace RFC copy-paste docstrings with Pythonic docstrings#1385

Open
ykd007 wants to merge 3 commits into
collective:mainfrom
ykd007:fix/issue-1244-pythonic-docstrings
Open

docs: replace RFC copy-paste docstrings with Pythonic docstrings#1385
ykd007 wants to merge 3 commits into
collective:mainfrom
ykd007:fix/issue-1244-pythonic-docstrings

Conversation

@ykd007
Copy link
Copy Markdown

@ykd007 ykd007 commented May 14, 2026

Closes #1244

Rewrites RFC copy-paste docstrings across Alarm, Component, and Calendar into clean Pythonic format with concise summaries, examples, and see-also references.

Updated (12 properties across 3 files):

  • Alarm: ACKNOWLEDGED, TRIGGER
  • Component: DTSTAMP/stamp, LAST_MODIFIED, CREATED
  • Calendar: calendar_name, description, color, prodid, version, calscale, method, refresh_interval

All 3 files pass py_compile syntax check.

…lective#1244)

Rewrote RFC-verbatim docstrings for the following properties:

alarm.py:
- Alarm.ACKNOWLEDGED: replaced RFC 9074 Purpose/Description wall-of-text
  with a concise summary, Return, Example and See also sections.
- Alarm.TRIGGER: replaced RFC 5545 Purpose/Value-Type verbatim with a
  clear summary, type info, Example and See also.

component.py:
- Component.DTSTAMP / stamp: replaced 'RFC 5545: Conformance/Description'
  block with a Pythonic summary, context note, Example and See also.
- Component.LAST_MODIFIED: same pattern - Pythonic summary, Example, See also.
- Component.CREATED: same pattern - Pythonic summary, Example, See also.

calendar.py:
- Calendar.calendar_name: removed Property Parameters/Conformance/Description
  RFC headings; added See also.
- Calendar.description: same cleanup.
- Calendar.color: removed Property Parameters/Conformance/Description RFC
  headings; added CSS3 link reference and See also.
- Calendar.prodid: replaced Conformance/Description verbatim with Pythonic
  summary, Example and See also.
- Calendar.version: replaced Purpose RFC text with Pythonic summary + Example.
- Calendar.calscale: replaced Conformance/Description/Compatibility with
  Pythonic summary, RFC 7529 note, Example and See also.
- Calendar.method: replaced Description RFC block with Pythonic summary,
  iTIP/RFC 5546 reference, Example and See also.
- Calendar.refresh_interval: replaced Conformance/Description headings with
  Pythonic summary, updated Raises, added Example and See also.
@read-the-docs-community
Copy link
Copy Markdown

read-the-docs-community Bot commented May 14, 2026

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Replace copy-paste of RFCs in docstrings with Pythonic docstrings

1 participant