We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
is
==
1 parent 02ccfe8 commit b42ad74Copy full SHA for b42ad74
pythclient/ratelimit.py
@@ -75,9 +75,9 @@ def configure(
75
76
@staticmethod
77
def _return_interval(instance_interval: RateLimitInterval, default_interval: RateLimitInterval) -> float:
78
- if instance_interval is None or instance_interval is 0:
+ if instance_interval is None or instance_interval == 0:
79
return 0
80
- elif instance_interval == False:
+ elif instance_interval is False:
81
return default_interval or 0
82
return instance_interval
83
0 commit comments