X Tutup
Skip to content

Commit e3f06bb

Browse files
committed
Docstring consistency
1 parent bd7776b commit e3f06bb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

dbl/ratelimiter.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,9 @@ class AsyncRateLimiter:
3636
"""
3737

3838
def __init__(self, max_calls, period=1.0, callback=None):
39-
"""Initialize a RateLimiter object which enforces as much as max_calls
40-
operations on period (eventually floating) number of seconds.
39+
"""
40+
Initialize a RateLimiter object which enforces as much as max_calls operations on period (eventually floating)
41+
number of seconds.
4142
"""
4243
if period <= 0:
4344
raise ValueError("Rate limiting period should be > 0.")

0 commit comments

Comments
 (0)
X Tutup