Skip to content

docs: add Google style docstring to vPeriod.overlaps - #2213

Open
ali33600 wants to merge 1 commit into
PyCalendar:mainfrom
ali33600:docs-1072-vperiod-overlaps
Open

ali33600 wants to merge 1 commit into
PyCalendar:mainfrom
ali33600:docs-1072-vperiod-overlaps

Conversation

@ali33600

Copy link
Copy Markdown

Linked issue

Description

Adds a Google style docstring to vPeriod.overlaps(), with a summary, the edge case of periods that only touch, Parameters, Returns, and doctest examples.

Checklist

  • I added a change log entry, following the instructions in all subsections under Change log requirements.
  • I followed icalendar's Artificial intelligence policy and disclosed my Responsible AI use in my commit messages, if applicable.
  • I added or updated tests, if applicable.
  • I ran and ensured all tests pass locally by following Run tests.
  • I added or edited documentation as necessary, both as docstrings to be rendered in the API documentation and narrative documentation, following the Style guide.

Contributes to PyCalendar#1072.

I wrote the docstring, applied the suggested corrections, and ran the doctests.
AI disclosure: I used Claude Opus 5.5 to review my draft for style and grammar.
@github-actions

Copy link
Copy Markdown
Contributor

Thanks for the pull request, @ali33600! A maintainer will review it shortly.

@github-actions

Copy link
Copy Markdown
Contributor

Insufficient data

Not enough activity yet to make a reliable assessment.

View full analysis →

This is an automated analysis by AgentScan

@SemTiOne SemTiOne left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I like the changes. Just one minor adjustment below. Also, could you locate the function in the generated API documentation and link it in the PR description? Thanks!

Comment thread news/1072.documentation
Comment on lines +1 to +2
Added a docstring to :meth:`vPeriod.overlaps() <icalendar.prop.dt.period.vPeriod.overlaps>`, with examples of overlapping and touching periods.
I used Claude Opus 5.5 to review my docstring. :user:`ali33600`

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Single line please.

Suggested change
Added a docstring to :meth:`vPeriod.overlaps() <icalendar.prop.dt.period.vPeriod.overlaps>`, with examples of overlapping and touching periods.
I used Claude Opus 5.5 to review my docstring. :user:`ali33600`
Added a docstring to :meth:`vPeriod.overlaps() <icalendar.prop.dt.period.vPeriod.overlaps>`, with examples of overlapping and touching periods. I used Claude Opus 5.5 to review my docstring. :user:`ali33600`

This branch has not been deployed

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants