From 6f98249dd8a36fd82c25b0be0f998333e07b7ad7 Mon Sep 17 00:00:00 2001 From: Alexander Clausen Date: Sat, 12 Dec 2020 19:34:23 +0100 Subject: [PATCH] Fix return type of _return_result --- tornado/gen.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tornado/gen.py b/tornado/gen.py index 2d2038551..a6370259b 100644 --- a/tornado/gen.py +++ b/tornado/gen.py @@ -410,7 +410,7 @@ class WaitIterator(object): else: self._finished.append(done) - def _return_result(self, done: Future) -> None: + def _return_result(self, done: Future) -> Future: """Called set the returned future's state that of the future we yielded, and set the current future for the iterator. """ -- 2.47.2