Skip to content

Commit 8913804

Browse files
committed
Fix unused nonlocal
flake8 caught this well - you only need nonlocal when *assigning* them, not when accessing methods on them as we are here. Even when the method is mutating
1 parent 53ffbb2 commit 8913804

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_proxies.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ async def test_eventstream(a_server_port_and_token: Tuple[int, str]) -> None:
359359
stream_data = []
360360

361361
def streaming_cb(data):
362-
nonlocal times_called, last_cb_time, stream_read_intervals
362+
nonlocal times_called, last_cb_time
363363
time_taken = time.perf_counter() - last_cb_time
364364
last_cb_time = time.perf_counter()
365365
stream_read_intervals.append(time_taken)

0 commit comments

Comments
 (0)