]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] 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:52:11 +0000 (14:52 +0200)
committerGitHub <noreply@github.com>
Sat, 18 Jul 2026 12:52:11 +0000 (14:52 +0200)
commita264c83e1355bc8423524176efa8297860e9083b
treecd09bcbf33108938e5de588c29a8593254de952d
parent713f1ab2f07c8efb9ec228cf76ba60d75361e9bb
[3.13] gh-153926: Fix documented parameter name for `calendar.calendar` and `calendar.prcal` (GH-153927) (#153939)

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