Skip to content

Commit 2a7af44

Browse files
authored
Merge pull request #3150 from python-trio/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2 parents 898ffad + 4946bd8 commit 2a7af44

File tree

5 files changed

+16
-16
lines changed

5 files changed

+16
-16
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ repos:
2222
hooks:
2323
- id: black
2424
- repo: https://github.com/astral-sh/ruff-pre-commit
25-
rev: v0.8.1
25+
rev: v0.8.2
2626
hooks:
2727
- id: ruff
2828
types: [file]

notes-to-self/aio-guest-test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ async def trio_main():
2727
to_trio, from_aio = trio.open_memory_channel(float("inf"))
2828
from_trio = asyncio.Queue()
2929

30-
_task_ref = asyncio.create_task(aio_pingpong(from_trio, to_trio))
30+
task_ref = asyncio.create_task(aio_pingpong(from_trio, to_trio))
3131

3232
from_trio.put_nowait(0)
3333

@@ -37,7 +37,7 @@ async def trio_main():
3737
from_trio.put_nowait(n + 1)
3838
if n >= 10:
3939
return
40-
del _task_ref
40+
del task_ref
4141

4242

4343
async def aio_pingpong(from_trio, to_trio):

src/trio/_file_io.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ async def open_file(
467467
:func:`trio.Path.open`
468468
469469
"""
470-
_file = wrap_file(
470+
file_ = wrap_file(
471471
await trio.to_thread.run_sync(
472472
io.open,
473473
file,
@@ -480,7 +480,7 @@ async def open_file(
480480
opener,
481481
),
482482
)
483-
return _file
483+
return file_
484484

485485

486486
def wrap_file(file: FileT) -> AsyncIOWrapper[FileT]:

src/trio/_socket.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1283,26 +1283,26 @@ async def sendto(self, *args: object) -> int:
12831283
@_wraps(_stdlib_socket.socket.sendmsg, assigned=(), updated=())
12841284
async def sendmsg(
12851285
self,
1286-
__buffers: Iterable[Buffer],
1287-
__ancdata: Iterable[tuple[int, int, Buffer]] = (),
1288-
__flags: int = 0,
1289-
__address: AddressFormat | None = None,
1286+
buffers: Iterable[Buffer],
1287+
ancdata: Iterable[tuple[int, int, Buffer]] = (),
1288+
flags: int = 0,
1289+
address: AddressFormat | None = None,
12901290
) -> int:
12911291
"""Similar to :meth:`socket.socket.sendmsg`, but async.
12921292
12931293
Only available on platforms where :meth:`socket.socket.sendmsg` is
12941294
available.
12951295
12961296
"""
1297-
if __address is not None:
1298-
__address = await self._resolve_address_nocp(__address, local=False)
1297+
if address is not None:
1298+
address = await self._resolve_address_nocp(address, local=False)
12991299
return await self._nonblocking_helper(
13001300
_core.wait_writable,
13011301
_stdlib_socket.socket.sendmsg,
1302-
__buffers,
1303-
__ancdata,
1304-
__flags,
1305-
__address,
1302+
buffers,
1303+
ancdata,
1304+
flags,
1305+
address,
13061306
)
13071307

13081308
################################################################

test-requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ pytest==8.3.3
113113
# via -r test-requirements.in
114114
requests==2.32.3
115115
# via sphinx
116-
ruff==0.8.1
116+
ruff==0.8.2
117117
# via -r test-requirements.in
118118
sniffio==1.3.1
119119
# via -r test-requirements.in

0 commit comments

Comments
 (0)