[Python-checkins] concurrent.futures: Fix typo in docstring (#92121)

JelleZijlstra webhook-mailer at python.org
Mon May 2 11:05:34 EDT 2022


https://github.com/python/cpython/commit/b11243e85e020ed2f524bdd83c339faf11ef03d4
commit: b11243e85e020ed2f524bdd83c339faf11ef03d4
branch: main
author: Yiannis Hadjicharalambous <hadjicharalambous.yiannis at gmail.com>
committer: JelleZijlstra <jelle.zijlstra at gmail.com>
date: 2022-05-02T09:05:26-06:00
summary:

concurrent.futures: Fix typo in docstring (#92121)

files:
M Lib/concurrent/futures/_base.py

diff --git a/Lib/concurrent/futures/_base.py b/Lib/concurrent/futures/_base.py
index 706a4f2c09d1f..d7e7e41967cc2 100644
--- a/Lib/concurrent/futures/_base.py
+++ b/Lib/concurrent/futures/_base.py
@@ -379,7 +379,7 @@ def running(self):
             return self._state == RUNNING
 
     def done(self):
-        """Return True of the future was cancelled or finished executing."""
+        """Return True if the future was cancelled or finished executing."""
         with self._condition:
             return self._state in [CANCELLED, CANCELLED_AND_NOTIFIED, FINISHED]
 



More information about the Python-checkins mailing list