Skip to content

Commit 9b9139d

Browse files
committed
Fix code style issues with Black
1 parent 0ba3766 commit 9b9139d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

twitchio/backoff.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def __init__(self, base=1, *, integral=False):
5555

5656
self._exp = 0
5757
self._max = 10
58-
self._reset_time = base * 2 ** 11
58+
self._reset_time = base * 2**11
5959
self._last_invocation = time.monotonic()
6060

6161
# Use our own random instance to avoid messing with global one
@@ -83,4 +83,4 @@ def delay(self):
8383
self._exp = 0
8484

8585
self._exp = min(self._exp + 1, self._max)
86-
return self._randfunc(0, self._base * 2 ** self._exp)
86+
return self._randfunc(0, self._base * 2**self._exp)

twitchio/http.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ async def _request(self, route, path, headers, utilize_bucket=True):
227227

228228
if 500 <= resp.status <= 504:
229229
reason = resp.reason
230-
await asyncio.sleep(2 ** attempt + 1)
230+
await asyncio.sleep(2**attempt + 1)
231231
continue
232232

233233
if utilize_bucket:
@@ -258,7 +258,7 @@ async def _request(self, route, path, headers, utilize_bucket=True):
258258
reason = "Ratelimit Reached"
259259

260260
if not utilize_bucket: # non Helix APIs don't have ratelimit headers
261-
await asyncio.sleep(3 ** attempt + 1)
261+
await asyncio.sleep(3**attempt + 1)
262262
continue
263263

264264
raise errors.HTTPException(f"Failed to fulfil request ({resp.status}).", resp.reason, resp.status)

0 commit comments

Comments
 (0)