Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion gql/transport/file_upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ def recurse_extract(path, obj):
replacing any file-like objects with nulls and
shunting the originals off to the side.
"""
nonlocal files
if isinstance(obj, list):
nulled_list = []
for key, value in enumerate(obj):
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
dev_requires = [
"black==26.5.1",
"check-manifest>=0.42,<1",
"flake8==7.1.2",
"flake8==7.3.0",
"isort==6.0.1",
"mypy==1.15",
"sphinx>=8.1.0,<9",
Expand Down
3 changes: 0 additions & 3 deletions tests/test_aiohttp_websocket_graphqlws_subscription.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ async def keepalive_coro():
async def receiving_coro():
print(" Server: receiving task started")
try:
nonlocal counting_task
while True:

try:
Expand Down Expand Up @@ -314,7 +313,6 @@ async def task_coro():
task = asyncio.ensure_future(task_coro())

async def cancel_task_coro():
nonlocal task

await asyncio.sleep(5.5 * COUNTING_DELAY)

Expand Down Expand Up @@ -354,7 +352,6 @@ async def task_coro():
task = asyncio.ensure_future(task_coro())

async def close_transport_task_coro():
nonlocal task

await asyncio.sleep(5.5 * COUNTING_DELAY)

Expand Down
4 changes: 0 additions & 4 deletions tests/test_aiohttp_websocket_subscription.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ async def server_countdown(ws):

logged_messages.clear()

global WITH_KEEPALIVE
try:
await WebSocketServerHelper.send_connection_ack(ws)
if WITH_KEEPALIVE:
Expand Down Expand Up @@ -126,7 +125,6 @@ async def counting_coro():
counting_task = asyncio.ensure_future(counting_coro())

async def stopping_coro():
nonlocal counting_task
while True:

try:
Expand Down Expand Up @@ -305,7 +303,6 @@ async def task_coro():
task = asyncio.ensure_future(task_coro())

async def cancel_task_coro():
nonlocal task

await asyncio.sleep(11 * MS)

Expand Down Expand Up @@ -345,7 +342,6 @@ async def task_coro():
task = asyncio.ensure_future(task_coro())

async def close_transport_task_coro():
nonlocal task

await asyncio.sleep(11 * MS)

Expand Down
1 change: 0 additions & 1 deletion tests/test_appsync_websockets.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,6 @@ async def keepalive_coro():
async def receiving_coro():
print(" Server: receiving task started")
try:
nonlocal send_message_task
while True:

try:
Expand Down
3 changes: 0 additions & 3 deletions tests/test_graphqlws_subscription.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ async def keepalive_coro():
async def receiving_coro():
print(" Server: receiving task started")
try:
nonlocal counting_task
while True:

try:
Expand Down Expand Up @@ -312,7 +311,6 @@ async def task_coro():
task = asyncio.ensure_future(task_coro())

async def cancel_task_coro():
nonlocal task

await asyncio.sleep(5.5 * COUNTING_DELAY)

Expand Down Expand Up @@ -352,7 +350,6 @@ async def task_coro():
task = asyncio.ensure_future(task_coro())

async def close_transport_task_coro():
nonlocal task

await asyncio.sleep(5.5 * COUNTING_DELAY)

Expand Down
1 change: 0 additions & 1 deletion tests/test_phoenix_channel_subscription.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@ async def counting_coro():
counting_task = asyncio.ensure_future(counting_coro())

async def stopping_coro():
nonlocal counting_task
while True:
result = await ws.recv()
json_result = json.loads(result)
Expand Down
4 changes: 0 additions & 4 deletions tests/test_websocket_subscription.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ async def server_countdown(ws):

logged_messages.clear()

global WITH_KEEPALIVE
try:
await WebSocketServerHelper.send_connection_ack(ws)
if WITH_KEEPALIVE:
Expand Down Expand Up @@ -62,7 +61,6 @@ async def counting_coro():
counting_task = asyncio.ensure_future(counting_coro())

async def stopping_coro():
nonlocal counting_task
while True:

try:
Expand Down Expand Up @@ -232,7 +230,6 @@ async def task_coro():
task = asyncio.ensure_future(task_coro())

async def cancel_task_coro():
nonlocal task

await asyncio.sleep(11 * MS)

Expand Down Expand Up @@ -272,7 +269,6 @@ async def task_coro():
task = asyncio.ensure_future(task_coro())

async def close_transport_task_coro():
nonlocal task

await asyncio.sleep(11 * MS)

Expand Down
Loading