Skip to content

Commit

Permalink
Linting and fix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
richardsheridan committed Aug 8, 2022
1 parent 56eca1c commit 53f48a2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions trio/_threads.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,8 @@ def from_thread_check_cancelled():
Raises:
Cancelled: If the corresponding call to `trio.to_thread.run_sync` has had a
delivery of cancellation attempted against it, regardless of the value of
``cancellable`` supplied as an argument to it.
delivery of cancellation attempted against it, regardless of the value of
``cancellable`` supplied as an argument to it.
AttributeError: If this thread is not spawned from `trio.to_thread.run_sync`.
"""
raise_cancel = THREAD_LOCAL.cancel_register[0]
Expand Down
2 changes: 1 addition & 1 deletion trio/tests/test_threads.py
Original file line number Diff line number Diff line change
Expand Up @@ -804,7 +804,7 @@ def f():

# cancellable=True case: slightly different thread behavior needed
# check thread is cancelled "soon" after abandonment
def f():
def f(): # noqa: F811
ev.wait()
try:
from_thread_check_cancelled()
Expand Down

0 comments on commit 53f48a2

Please sign in to comment.