Skip to content

Commit b42ad74

Browse files
author
Jeff Schroeder
committed
Use is for literals and == for non-literals
1 parent 02ccfe8 commit b42ad74

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pythclient/ratelimit.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,9 @@ def configure(
7575

7676
@staticmethod
7777
def _return_interval(instance_interval: RateLimitInterval, default_interval: RateLimitInterval) -> float:
78-
if instance_interval is None or instance_interval is 0:
78+
if instance_interval is None or instance_interval == 0:
7979
return 0
80-
elif instance_interval == False:
80+
elif instance_interval is False:
8181
return default_interval or 0
8282
return instance_interval
8383

0 commit comments

Comments
 (0)