docs(core): move incorrect arg limitation in rate limiter's docstring (#32118)

This commit is contained in:
astraszab 2025-07-20 18:28:35 +00:00 committed by GitHub
parent cc076ed891
commit 668c084520
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -146,13 +146,12 @@ class InMemoryRateLimiter(BaseRateLimiter):
Args: Args:
requests_per_second: The number of tokens to add per second to the bucket. requests_per_second: The number of tokens to add per second to the bucket.
Must be at least 1. The tokens represent "credit" that can be used The tokens represent "credit" that can be used to make requests.
to make requests.
check_every_n_seconds: check whether the tokens are available check_every_n_seconds: check whether the tokens are available
every this many seconds. Can be a float to represent every this many seconds. Can be a float to represent
fractions of a second. fractions of a second.
max_bucket_size: The maximum number of tokens that can be in the bucket. max_bucket_size: The maximum number of tokens that can be in the bucket.
This is used to prevent bursts of requests. Must be at least 1. Used to prevent bursts of requests.
""" """
# Number of requests that we can make per second. # Number of requests that we can make per second.
self.requests_per_second = requests_per_second self.requests_per_second = requests_per_second