Fix typos in `Weekday.today` example (GH-27363)

This commit is contained in:
Steffen Zeile 2021-07-26 23:35:09 +02:00 committed by GitHub
parent a2c45e5bcf
commit 6c7ec7282b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -273,7 +273,7 @@ Data Types
... SUNDAY = 7 ... SUNDAY = 7
... @classmethod ... @classmethod
... def today(cls): ... def today(cls):
... print('today is %s' % cls(date.today.isoweekday).naem) ... print('today is %s' % cls(date.today().isoweekday()).name)
>>> dir(Weekday.SATURDAY) >>> dir(Weekday.SATURDAY)
['__class__', '__doc__', '__module__', 'name', 'today', 'value'] ['__class__', '__doc__', '__module__', 'name', 'today', 'value']