Skip to content

Commit a92740b

Browse files
Use _ for unused variables
Co-authored-by: Jacob Tomlinson <[email protected]>
1 parent 3176491 commit a92740b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

distributed/_concurrent_futures_thread.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ def _python_exit():
4141
global _shutdown
4242
_shutdown = True
4343
items = list(_threads_queues.items())
44-
for _t, q in items:
44+
for _, q in items:
4545
q.put(None)
46-
for t, _q in items:
46+
for t, _ in items:
4747
t.join()
4848

4949

distributed/tests/test_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6428,7 +6428,7 @@ async def test_as_completed_async_for_results(c, s, a, b):
64286428
results = []
64296429

64306430
async def f():
6431-
async for _future, result in ac:
6431+
async for _, result in ac:
64326432
results.append(result)
64336433

64346434
await f()
@@ -8199,7 +8199,7 @@ async def test_client_disconnect_exception_on_cancelled_futures(c, s, a, b):
81998199
with pytest.raises(FuturesCancelledError, match="connection to the scheduler"):
82008200
futures_of(fut, client=c)
82018201

8202-
async for _fut, res in as_completed([fut], with_results=True):
8202+
async for _, res in as_completed([fut], with_results=True):
82038203
assert isinstance(res, FutureCancelledError)
82048204
assert "connection to the scheduler" in res.msg
82058205

0 commit comments

Comments
 (0)