File tree 2 files changed +3
-3
lines changed 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -232,8 +232,8 @@ def from_thread_check_cancelled():
232
232
233
233
Raises:
234
234
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.
237
237
AttributeError: If this thread is not spawned from `trio.to_thread.run_sync`.
238
238
"""
239
239
raise_cancel = THREAD_LOCAL .cancel_register [0 ]
Original file line number Diff line number Diff line change @@ -804,7 +804,7 @@ def f():
804
804
805
805
# cancellable=True case: slightly different thread behavior needed
806
806
# check thread is cancelled "soon" after abandonment
807
- def f ():
807
+ def f (): # noqa: F811
808
808
ev .wait ()
809
809
try :
810
810
from_thread_check_cancelled ()
You can’t perform that action at this time.
0 commit comments