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月02日T09: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]