Skip to content

Commit f724be5

Browse files
[pre-commit.ci] pre-commit autoupdate (#3139)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/astral-sh/ruff-pre-commit: v0.7.3 → v0.7.4](astral-sh/ruff-pre-commit@v0.7.3...v0.7.4) * Move None to end of type hint --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: EXPLOSION <git@helvetica.moe>
1 parent 8f2c08c commit f724be5

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
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.7.3
25+
rev: v0.7.4
2626
hooks:
2727
- id: ruff
2828
types: [file]

src/trio/_core/_run.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1406,7 +1406,7 @@ class Task(metaclass=NoPublicConstructor): # type: ignore[misc]
14061406
# Tasks start out unscheduled.
14071407
# Explicit "Any" is not allowed
14081408
_next_send_fn: Callable[[Any], object] | None = None # type: ignore[misc]
1409-
_next_send: Outcome[Any] | None | BaseException = None # type: ignore[misc]
1409+
_next_send: Outcome[Any] | BaseException | None = None # type: ignore[misc]
14101410
_abort_func: Callable[[_core.RaiseCancelT], Abort] | None = None
14111411
custom_sleep_data: Any = None # type: ignore[misc]
14121412

src/trio/testing/_fake_net.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ async def sendto(
504504
self,
505505
__data: Buffer, # noqa: PYI063
506506
__flags: int,
507-
__address: tuple[object, ...] | str | None | Buffer,
507+
__address: tuple[object, ...] | str | Buffer | None,
508508
) -> int: ...
509509

510510
# Explicit "Any" is not allowed

0 commit comments

Comments
 (0)