Skip to content

Commit 53f48a2

Browse files
Linting and fix docs
1 parent 56eca1c commit 53f48a2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

trio/_threads.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,8 +232,8 @@ def from_thread_check_cancelled():
232232
233233
Raises:
234234
Cancelled: If the corresponding call to `trio.to_thread.run_sync` has had a
235-
delivery of cancellation attempted against it, regardless of the value of
236-
``cancellable`` supplied as an argument to it.
235+
delivery of cancellation attempted against it, regardless of the value of
236+
``cancellable`` supplied as an argument to it.
237237
AttributeError: If this thread is not spawned from `trio.to_thread.run_sync`.
238238
"""
239239
raise_cancel = THREAD_LOCAL.cancel_register[0]

trio/tests/test_threads.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -804,7 +804,7 @@ def f():
804804

805805
# cancellable=True case: slightly different thread behavior needed
806806
# check thread is cancelled "soon" after abandonment
807-
def f():
807+
def f(): # noqa: F811
808808
ev.wait()
809809
try:
810810
from_thread_check_cancelled()

0 commit comments

Comments
 (0)