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

miss-islington webhook-mailer at python.org
Mon May 2 12:06:47 EDT 2022


https://github.com/python/cpython/commit/ac508276dc8c9e1ac0731ec7fce3aae3a378ffd1
commit: ac508276dc8c9e1ac0731ec7fce3aae3a378ffd1
branch: 3.10
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: miss-islington <31488909+miss-islington at users.noreply.github.com>
date: 2022-05-02T09:06:43-07:00
summary:

concurrent.futures: Fix typo in docstring (GH-92121)

(cherry picked from commit b11243e85e020ed2f524bdd83c339faf11ef03d4)

Co-authored-by: Yiannis Hadjicharalambous <hadjicharalambous.yiannis at gmail.com>

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

diff --git a/Lib/concurrent/futures/_base.py b/Lib/concurrent/futures/_base.py
index 5c00f2edbe548..cf119ac6437aa 100644
--- a/Lib/concurrent/futures/_base.py
+++ b/Lib/concurrent/futures/_base.py
@@ -381,7 +381,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