Skip to content

Commit 33f1caa

Browse files
CoolCat467jakkdl
andauthored
Apply suggestions from code review
Co-authored-by: John Litborn <[email protected]>
1 parent 03f1c4e commit 33f1caa

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

src/trio/_path.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
T = TypeVar("T")
3131

3232

33-
# Explicit "Any" is not allowed
33+
# Explicit .../"Any" is not allowed
3434
def _wraps_async( # type: ignore[misc]
3535
wrapped: Callable[..., object],
3636
) -> Callable[[Callable[P, T]], Callable[P, Awaitable[T]]]:

src/trio/_tests/test_subprocess.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ async def run_process_in_nursery(*args: Any, **kwargs: Any) -> AsyncIterator[Pro
115115
ids=["open_process", "run_process in nursery"],
116116
)
117117

118-
# Explicit "Any" is not allowed
118+
# Explicit .../"Any" is not allowed
119119
BackgroundProcessType: TypeAlias = Callable[ # type: ignore[misc]
120120
...,
121121
AbstractAsyncContextManager[Process],

src/trio/_threads.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,9 +207,8 @@ def in_trio_thread() -> None:
207207

208208

209209
@attrs.frozen(eq=False, slots=False)
210-
# Explicit "Any" is not allowed
210+
# Explicit .../"Any" is not allowed
211211
class RunSync(Generic[RetT]): # type: ignore[misc]
212-
# Explicit "Any" is not allowed
213212
fn: Callable[..., RetT] # type: ignore[misc]
214213
args: tuple[object, ...]
215214
context: contextvars.Context = attrs.field(

0 commit comments

Comments
 (0)