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

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