[3.13] gh-120567: Clarify weekday return in calendar.monthrange docstring (GH-120570) (#120597)

gh-120567: Clarify weekday return in calendar.monthrange docstring (GH-120570)
(cherry picked from commit bd4516d9ef)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
This commit is contained in:
Miss Islington (bot) 2024-06-16 23:09:54 +02:00 committed by GitHub
parent 7655989a3a
commit aa39ba0af3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -159,8 +159,8 @@ def weekday(year, month, day):
def monthrange(year, month): def monthrange(year, month):
"""Return weekday (0-6 ~ Mon-Sun) and number of days (28-31) for """Return weekday of first day of month (0-6 ~ Mon-Sun)
year, month.""" and number of days (28-31) for year, month."""
if not 1 <= month <= 12: if not 1 <= month <= 12:
raise IllegalMonthError(month) raise IllegalMonthError(month)
day1 = weekday(year, month, 1) day1 = weekday(year, month, 1)