Skip to content

Commit 6643e25

Browse files
abhishekacharya200miss-islington
authored andcommitted
Fix documented TextCalendar.format{week,monthname}() signatures (GH-159516)
(cherry picked from commit 9cb7a5b) Co-authored-by: Abhishek Acharya <118182738+abhishekacharya200@users.noreply.github.com>
1 parent 527e9a2 commit 6643e25

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎Doc/library/calendar.rst‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -166,10 +166,10 @@ interpreted as prescribed by the ISO 8601 standard. Year 0 is 1 BC, year -1 is
166166
the specified width, representing an empty day. The *weekday* parameter
167167
is unused.
168168

169-
.. method:: formatweek(theweek, w=0)
169+
.. method:: formatweek(theweek, width)
170170

171-
Return a single week in a string with no newline. If *w* is provided, it
172-
specifies the width of the date columns, which are centered. Depends
171+
Return a single week in a string with no newline. *width* specifies
172+
the width of the date columns, which are centered. Depends
173173
on the first weekday as specified in the constructor or set by the
174174
:meth:`setfirstweekday` method.
175175

@@ -197,7 +197,7 @@ interpreted as prescribed by the ISO 8601 standard. Year 0 is 1 BC, year -1 is
197197
:meth:`setfirstweekday` method.
198198

199199

200-
.. method:: formatmonthname(theyear, themonth, width=0, withyear=True)
200+
.. method:: formatmonthname(theyear, themonth, width, withyear=True)
201201

202202
Return a string representing the month's name centered within the
203203
specified *width*. If *withyear* is ``True``, include the year in the

0 commit comments

Comments
 (0)