Skip to content

Commit 3e2e168

Browse files
author
Diego Alloza González
committed
chore: simplify extra code according to @NickFabry
1 parent 3020cef commit 3e2e168

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pendulum/duration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def _divide_and_round(a, b):
2424
# in Objects/longobject.c.
2525
q, r = divmod(a, b)
2626

27-
if isinstance(q, float) and q == int(q):
27+
if isinstance(q, float):
2828
q = int(q)
2929

3030
# round up if either r / b > 0.5, or r / b == 0.5 and q is odd.

0 commit comments

Comments
 (0)