Skip to content

Commit 30babaf

Browse files
committed
Black changes that got missed somehow
1 parent 810534d commit 30babaf

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

src/trio/_tests/test_timeouts.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,8 @@ async def task() -> None:
108108
async def test_fail_after_fails_even_if_shielded() -> None:
109109
async def task() -> None:
110110
with pytest.raises(TooSlowError), _core.CancelScope() as outer, fail_after(
111-
TARGET, shield=True
111+
TARGET,
112+
shield=True,
112113
):
113114
outer.cancel()
114115
# The outer scope is cancelled, but this task is protected by the

src/trio/_tests/tools/test_gen_exports.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,9 @@ def test_create_pass_through_args() -> None:
9292
@skip_lints
9393
@pytest.mark.parametrize("imports", [IMPORT_1, IMPORT_2, IMPORT_3])
9494
def test_process(
95-
tmp_path: Path, imports: str, capsys: pytest.CaptureFixture[str]
95+
tmp_path: Path,
96+
imports: str,
97+
capsys: pytest.CaptureFixture[str],
9698
) -> None:
9799
try:
98100
import black # noqa: F401

src/trio/_timeouts.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,9 @@ def fail_at(deadline: float, *, shield: bool = False) -> AbstractContextManager[
134134

135135

136136
def fail_after(
137-
seconds: float, *, shield: bool = False
137+
seconds: float,
138+
*,
139+
shield: bool = False,
138140
) -> AbstractContextManager[trio.CancelScope]:
139141
"""Creates a cancel scope with the given timeout, and raises an error if
140142
it is actually cancelled.

0 commit comments

Comments
 (0)