Skip to content

Commit 8af563b

Browse files
authored
Remove useless int casting (#735)
1 parent f3d0afc commit 8af563b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pendulum/_helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def local_time(
9292
for a particular transition type.
9393
"""
9494
year = EPOCH_YEAR
95-
seconds = int(math.floor(unix_time))
95+
seconds = math.floor(unix_time)
9696

9797
# Shift to a base year that is 400-year aligned.
9898
if seconds >= 0:

pendulum/date.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def age(self) -> int:
8484

8585
@property
8686
def quarter(self) -> int:
87-
return int(math.ceil(self.month / 3))
87+
return math.ceil(self.month / 3)
8888

8989
# String Formatting
9090

0 commit comments

Comments
 (0)