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:
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 ,
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments