Skip to content

Commit 75a943d

Browse files
aaronmlAPbraxtonmckee
authored andcommitted
Fix quarter attribute of Date
1 parent 61c8abe commit 75a943d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

typed_python/lib/datetime/date_time.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ def firstOfMonth(self):
269269
return Date(self.year, self.month, 1)
270270

271271
def quarterOfYear(self):
272-
return (self.date.month - 1) // 3 + 1
272+
return (self.month - 1) // 3 + 1
273273

274274
def next(self, step: int = 1):
275275
"""Returns the date `step` days ahead of `self`.

0 commit comments

Comments
 (0)