Skip to content

Commit

Permalink
mypy is dumb and doesn't understand how to transform to SSA
Browse files Browse the repository at this point in the history
  • Loading branch information
Roguelazer committed Aug 19, 2022
1 parent 1b05046 commit 3bc053e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pystalk/pool.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,10 @@ def __init__(self, clients: List[BeanstalkClient], round_robin: bool = True,
if not clients:
raise ValueError('Must pass at least one BeanstalkClient')
self._current_client_index = 0
clients = [ClientRecord(c) for c in clients]
client_records = [ClientRecord(c) for c in clients]
if shuffle:
random.shuffle(clients)
self._clients = deque(clients)
random.shuffle(client_records)
self._clients = deque(client_records)
self.current_tube: Optional[str] = None
self.round_robin = round_robin
self.backoff_time = backoff_time
Expand Down

0 comments on commit 3bc053e

Please sign in to comment.