Skip to content

Commit

Permalink
Run pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
JWCook committed Jul 2, 2024
1 parent fa4848c commit 963aaef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions requests_ratelimiter/requests_ratelimiter.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,14 +168,14 @@ class LimiterSession(LimiterMixin, Session):
per_host: Track request rate limits separately for each host
limit_statuses: Alternative HTTP status codes that indicate a rate limit was exceeded
"""

__attrs__ = Session.__attrs__ + [
'limiter',
'limit_statuses',
'max_delay',
'per_host',
'bucket_name',
'_default_bucket'
'_default_bucket',
]


Expand Down
2 changes: 1 addition & 1 deletion test/test_requests_ratelimiter.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ def test_pickling_and_unpickling():
assert pickled_session is not None
unpickled_session = pickle.loads(pickled_session)
assert unpickled_session is not None

# Check that the unpickled instance has the same attributes
assert unpickled_session.per_host == session.per_host
assert unpickled_session.max_delay == session.max_delay
Expand Down

0 comments on commit 963aaef

Please sign in to comment.