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

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


https://github.com/python/cpython/commit/1a7867fc0c3913828157e23623381baa7625b626
commit: 1a7867fc0c3913828157e23623381baa7625b626
branch: 3.9
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:25:45-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