Skip to content

Commit 506e211

Browse files
authored
Merge branch 'master' into remove_multierror
2 parents 79754b8 + 6547313 commit 506e211

File tree

6 files changed

+17
-26
lines changed

6 files changed

+17
-26
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]

docs-requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ importlib-resources==6.1.1
4242
# via towncrier
4343
incremental==22.10.0
4444
# via towncrier
45-
jinja2==3.1.2
45+
jinja2==3.1.3
4646
# via
4747
# -r docs-requirements.in
4848
# sphinx

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: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ isort==5.13.2
6767
# via pylint
6868
jedi==0.19.1
6969
# via -r test-requirements.in
70-
jinja2==3.1.2
70+
jinja2==3.1.3
7171
# via sphinx
7272
markupsafe==2.1.3
7373
# via jinja2
@@ -112,15 +112,15 @@ pyopenssl==23.3.0
112112
# via -r test-requirements.in
113113
pyproject-hooks==1.0.0
114114
# via build
115-
pyright==1.1.344
115+
pyright==1.1.347
116116
# via -r test-requirements.in
117117
pytest==7.4.4
118118
# via -r test-requirements.in
119119
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
@@ -155,13 +155,13 @@ tomlkit==0.12.3
155155
# via pylint
156156
trustme==1.1.0
157157
# via -r test-requirements.in
158-
types-cffi==1.16.0.0 ; implementation_name == "cpython"
158+
types-cffi==1.16.0.20240106 ; implementation_name == "cpython"
159159
# via -r test-requirements.in
160-
types-docutils==0.20.0.3
160+
types-docutils==0.20.0.20240106
161161
# via -r test-requirements.in
162-
types-pyopenssl==23.3.0.0 ; implementation_name == "cpython"
162+
types-pyopenssl==23.3.0.20240106 ; implementation_name == "cpython"
163163
# via -r test-requirements.in
164-
types-setuptools==69.0.0.0
164+
types-setuptools==69.0.0.20240115
165165
# via types-cffi
166166
typing-extensions==4.9.0
167167
# via

0 commit comments

Comments
 (0)