Skip to content

Commit eee1ebc

Browse files
committed
Refactor: Use direct reference to constants instead of self
- Constants declared outside the class should be directly accessed without using `self`.
1 parent 32ce6fa commit eee1ebc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pendulum/formatting/difference_formatter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def format(
8484
elif diff.minutes > 0:
8585
unit = "minute"
8686
count = diff.minutes
87-
elif self.FEW_SECONDS_MAX < diff.remaining_seconds < SECONDS_OF_MINUTE:
87+
elif FEW_SECONDS_MAX < diff.remaining_seconds < SECONDS_OF_MINUTE:
8888
unit = "second"
8989
count = diff.remaining_seconds
9090
else:

0 commit comments

Comments
 (0)