File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1773,7 +1773,7 @@ def current_root_task(self) -> Task | None:
1773
1773
# Core task handling primitives
1774
1774
################
1775
1775
1776
- @_public # Type-ignore due to use of Any here.
1776
+ @_public
1777
1777
def reschedule (
1778
1778
self ,
1779
1779
task : Task ,
Original file line number Diff line number Diff line change @@ -546,11 +546,11 @@ def _identity(v: _T) -> _T:
546
546
"https://github.com/python-trio/trio/pull/3110#discussion_r1802123644"
547
547
),
548
548
)
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 :
550
550
assert not _core .currently_ki_protected ()
551
551
552
552
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
554
554
def decorated () -> bool :
555
555
return _core .currently_ki_protected ()
556
556
You can’t perform that action at this time.
0 commit comments