]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.15] gh-153926: Fix documented parameter name for `calendar.calendar` and `calendar...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 18 Jul 2026 12:38:34 +0000 (14:38 +0200)
committerGitHub <noreply@github.com>
Sat, 18 Jul 2026 12:38:34 +0000 (14:38 +0200)
commitb009722988933331b479fd57c134db6ab7669cc8
tree604661f68fc077ca88e1b33088a70732e8bb7374
parent294e5637538063025c4f5af8fe74667b74f00cea
[3.15] gh-153926: Fix documented parameter name for `calendar.calendar` and `calendar.prcal` (GH-153927) (#153937)

gh-153926: Fix documented parameter name for `calendar.calendar` and `calendar.prcal` (GH-153927)

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 d12434b4661c6be7430002e66a54d920f7d4ca7f)

Co-authored-by: Vyron Vasileiadis <hi@fedonman.com>
Doc/library/calendar.rst