From 8e7c94bb316ec0db84ab5b92baf8ea88a624d205 Mon Sep 17 00:00:00 2001 From: Abhishek Acharya <118182738+abhishekacharya200@users.noreply.github.com> Date: Sat, 17 Oct 2026 01:06:32 +0545 Subject: [PATCH] Fix documented `TextCalendar.format{week,monthname}()` signatures (GH-159516) (cherry picked from commit 9cb7a5ba22a51d92a2e321e84ec0287d931f6a9b) Co-authored-by: Abhishek Acharya <118182738+abhishekacharya200@users.noreply.github.com> --- Doc/library/calendar.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Doc/library/calendar.rst b/Doc/library/calendar.rst index fb0ffc73b48c40c..0dc1481aeff01dd 100644 --- a/Doc/library/calendar.rst +++ b/Doc/library/calendar.rst @@ -169,10 +169,10 @@ interpreted as prescribed by the ISO 8601 standard. Year 0 is 1 BC, year -1 is the specified width, representing an empty day. The *weekday* parameter is unused. - .. method:: formatweek(theweek, w=0) + .. method:: formatweek(theweek, width) - Return a single week in a string with no newline. If *w* is provided, it - specifies the width of the date columns, which are centered. Depends + Return a single week in a string with no newline. *width* specifies + the width of the date columns, which are centered. Depends on the first weekday as specified in the constructor or set by the :meth:`setfirstweekday` method. @@ -200,7 +200,7 @@ interpreted as prescribed by the ISO 8601 standard. Year 0 is 1 BC, year -1 is :meth:`setfirstweekday` method. - .. method:: formatmonthname(theyear, themonth, width=0, withyear=True) + .. method:: formatmonthname(theyear, themonth, width, withyear=True) Return a string representing the month's name centered within the specified *width*. If *withyear* is ``True``, include the year in the