Skip to content
Prev Previous commit
Next Next commit
fix lint: wrap doc line
  • Loading branch information
Manoj committed Apr 8, 2026
commit 60b2aedbd2f609f59af027095f44187965173508
5 changes: 3 additions & 2 deletions Lib/asyncio/futures.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,9 @@ def cancel(self, msg=None):
change the future's state to cancelled, schedule the callbacks and
return True.

The optional argument *msg* is passed as the argument to the asyncio.CancelledError
exception raised when a cancelled Future is awaited. It can be any object.
The optional argument *msg* is passed as the argument to the
asyncio.CancelledError exception raised when a cancelled Future
is awaited. It can be any object.
"""
self.__log_traceback = False
if self._state != _PENDING:
Expand Down
Loading