Skip to content

Commit 9bbaef0

Browse files
committed
Merge branch 'ki-with-code-objects' of github.com:graingert/trio into ki-with-code-objects
2 parents 0c80de3 + 4fe4d36 commit 9bbaef0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/trio/_core/_run.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1773,7 +1773,7 @@ def current_root_task(self) -> Task | None:
17731773
# Core task handling primitives
17741774
################
17751775

1776-
@_public # Type-ignore due to use of Any here.
1776+
@_public
17771777
def reschedule(
17781778
self,
17791779
task: Task,

src/trio/_core/_tests/test_ki.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -546,11 +546,11 @@ def _identity(v: _T) -> _T:
546546
"https://github.com/python-trio/trio/pull/3110#discussion_r1802123644"
547547
),
548548
)
549-
async def test_ki_does_not_leak_accross_different_calls_to_inner_functions() -> None:
549+
async def test_ki_does_not_leak_across_different_calls_to_inner_functions() -> None:
550550
assert not _core.currently_ki_protected()
551551

552552
def factory(enabled: bool) -> Callable[[], bool]:
553-
@_identity(_core.enable_ki_protection if enabled else _identity)
553+
@_core.enable_ki_protection if enabled else _identity
554554
def decorated() -> bool:
555555
return _core.currently_ki_protected()
556556

0 commit comments

Comments
 (0)