]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-153926: Fix documented parameter name for `calendar.calendar` and `calendar.prcal...
authorVyron Vasileiadis <hi@fedonman.com>
Sat, 18 Jul 2026 12:29:23 +0000 (15:29 +0300)
committerGitHub <noreply@github.com>
Sat, 18 Jul 2026 12:29:23 +0000 (14:29 +0200)
commitd12434b4661c6be7430002e66a54d920f7d4ca7f
tree01a193a74a06b43020438ff31b1803f09322822d
parent0a09dafb03dae17895d4a86af04985e373bbdceb
gh-153926: Fix documented parameter name for `calendar.calendar` and `calendar.prcal` (#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.
Doc/library/calendar.rst