Skip to content

[3.15] gh-153926: Fix documented parameter name for calendar.calendar and calendar.prcal (GH-153927)#153937

Merged
tomasr8 merged 1 commit into
python:3.15from
miss-islington:backport-d12434b-3.15
Jul 18, 2026
Merged

[3.15] gh-153926: Fix documented parameter name for calendar.calendar and calendar.prcal (GH-153927)#153937
tomasr8 merged 1 commit into
python:3.15from
miss-islington:backport-d12434b-3.15

Conversation

@miss-islington

Copy link
Copy Markdown
Contributor

gh-153926: Fix documented parameter name for calendar.calendar and calendar.prcal

calendar.calendar() and calendar.prcal() are bound methods of the
module's TextCalendar instance, whose first parameter is named theyear,
but the documentation named it year, so the documented keyword raised
TypeError. Update the documentation to match the real signature, which
also matches the sibling month() and prmonth() functions.
(cherry picked from commit d12434b)

Co-authored-by: Vyron Vasileiadis hi@fedonman.com

…` and `calendar.prcal` (pythonGH-153927)

pythongh-153926: Fix documented parameter name for calendar.calendar and calendar.prcal

calendar.calendar() and calendar.prcal() are bound methods of the
module's TextCalendar instance, whose first parameter is named theyear,
but the documentation named it year, so the documented keyword raised
TypeError. Update the documentation to match the real signature, which
also matches the sibling month() and prmonth() functions.
(cherry picked from commit d12434b4661c6be7430002e66a54d920f7d4ca7f)

Co-authored-by: Vyron Vasileiadis <hi@fedonman.com>
@read-the-docs-community

Copy link
Copy Markdown

@tomasr8
tomasr8 merged commit b009722 into python:3.15 Jul 18, 2026
40 checks passed
@github-project-automation github-project-automation Bot moved this from Todo to Done in Sprint Jul 18, 2026
@github-project-automation github-project-automation Bot moved this from Todo to Done in Docs PRs Jul 18, 2026
@miss-islington
miss-islington deleted the backport-d12434b-3.15 branch July 18, 2026 12:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation in the Doc dir skip news sprint

Projects

Status: Done
Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants