Skip to content

Commit

Permalink
use peo614
Browse files Browse the repository at this point in the history
  • Loading branch information
graingert authored Oct 24, 2024
1 parent 022bd3d commit 4fe4d36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/trio/_core/_tests/test_ki.py
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,7 @@ async def test_ki_does_not_leak_across_different_calls_to_inner_functions() -> N
assert not _core.currently_ki_protected()

def factory(enabled: bool) -> Callable[[], bool]:
@_identity(_core.enable_ki_protection if enabled else _identity)
@_core.enable_ki_protection if enabled else _identity
def decorated() -> bool:
return _core.currently_ki_protected()

Expand Down

0 comments on commit 4fe4d36

Please sign in to comment.