Skip to content

Commit bdc0b48

Browse files
[pre-commit.ci] pre-commit autoupdate (#2924)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/astral-sh/ruff-pre-commit: v0.1.11 → v0.1.13](astral-sh/ruff-pre-commit@v0.1.11...v0.1.13) * [pre-commit.ci] auto fixes from pre-commit.com hooks * Make CI pass --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: EXPLOSION <[email protected]>
1 parent d1cc062 commit bdc0b48

File tree

5 files changed

+10
-19
lines changed

5 files changed

+10
-19
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ repos:
2323
hooks:
2424
- id: black
2525
- repo: https://github.com/astral-sh/ruff-pre-commit
26-
rev: v0.1.11
26+
rev: v0.1.13
2727
hooks:
2828
- id: ruff
2929
types: [file]

src/trio/_core/_run.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -80,15 +80,6 @@
8080

8181
PosArgT = TypeVarTuple("PosArgT")
8282

83-
# Needs to be guarded, since Unpack[] would be evaluated at runtime.
84-
class _NurseryStartFunc(Protocol[Unpack[PosArgT], StatusT_co]):
85-
"""Type of functions passed to `nursery.start() <trio.Nursery.start>`."""
86-
87-
def __call__(
88-
self, *args: Unpack[PosArgT], task_status: TaskStatus[StatusT_co]
89-
) -> Awaitable[object]:
90-
...
91-
9283

9384
DEADLINE_HEAP_MIN_PRUNE_THRESHOLD: Final = 1000
9485

src/trio/_socket.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1061,7 +1061,7 @@ def recv(__self, __buflen: int, __flags: int = 0) -> Awaitable[bytes]:
10611061
# _make_simple_sock_method_wrapper is typed, so this checks that the above is correct
10621062
# this requires that we refrain from using `/` to specify pos-only
10631063
# args, or mypy thinks the signature differs from typeshed.
1064-
recv = _make_simple_sock_method_wrapper( # noqa: F811
1064+
recv = _make_simple_sock_method_wrapper(
10651065
_stdlib_socket.socket.recv, _core.wait_readable
10661066
)
10671067

@@ -1076,7 +1076,7 @@ def recv_into(
10761076
) -> Awaitable[int]:
10771077
...
10781078

1079-
recv_into = _make_simple_sock_method_wrapper( # noqa: F811
1079+
recv_into = _make_simple_sock_method_wrapper(
10801080
_stdlib_socket.socket.recv_into, _core.wait_readable
10811081
)
10821082

@@ -1091,7 +1091,7 @@ def recvfrom(
10911091
) -> Awaitable[tuple[bytes, AddressFormat]]:
10921092
...
10931093

1094-
recvfrom = _make_simple_sock_method_wrapper( # noqa: F811
1094+
recvfrom = _make_simple_sock_method_wrapper(
10951095
_stdlib_socket.socket.recvfrom, _core.wait_readable
10961096
)
10971097

@@ -1106,7 +1106,7 @@ def recvfrom_into(
11061106
) -> Awaitable[tuple[int, AddressFormat]]:
11071107
...
11081108

1109-
recvfrom_into = _make_simple_sock_method_wrapper( # noqa: F811
1109+
recvfrom_into = _make_simple_sock_method_wrapper(
11101110
_stdlib_socket.socket.recvfrom_into, _core.wait_readable
11111111
)
11121112

@@ -1158,7 +1158,7 @@ def recvmsg_into(
11581158
def send(__self, __bytes: Buffer, __flags: int = 0) -> Awaitable[int]:
11591159
...
11601160

1161-
send = _make_simple_sock_method_wrapper( # noqa: F811
1161+
send = _make_simple_sock_method_wrapper(
11621162
_stdlib_socket.socket.send, _core.wait_writable
11631163
)
11641164

src/trio/_subprocess_platform/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def create_pipe_from_child_output() -> Tuple["ClosableReceiveStream", int]:
7070

7171
try:
7272
if sys.platform == "win32":
73-
from .windows import wait_child_exiting # noqa: F811
73+
from .windows import wait_child_exiting
7474
elif sys.platform != "linux" and (TYPE_CHECKING or hasattr(_core, "wait_kevent")):
7575
from .kqueue import wait_child_exiting
7676
else:
@@ -86,11 +86,11 @@ def create_pipe_from_child_output() -> Tuple["ClosableReceiveStream", int]:
8686

8787
elif os.name == "posix":
8888

89-
def create_pipe_to_child_stdin(): # noqa: F811
89+
def create_pipe_to_child_stdin():
9090
rfd, wfd = os.pipe()
9191
return trio.lowlevel.FdStream(wfd), rfd
9292

93-
def create_pipe_from_child_output(): # noqa: F811
93+
def create_pipe_from_child_output():
9494
rfd, wfd = os.pipe()
9595
return trio.lowlevel.FdStream(rfd), wfd
9696

test-requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ pytz==2023.3.post1
120120
# via babel
121121
requests==2.31.0
122122
# via sphinx
123-
ruff==0.1.9
123+
ruff==0.1.13
124124
# via -r test-requirements.in
125125
sniffio==1.3.0
126126
# via -r test-requirements.in

0 commit comments

Comments
 (0)