]> git.ipfire.org Git - thirdparty/tornado.git/commit
Allow non-yielding functions in `tornado.gen.coroutine`'s type hint (#2909)
authorjack1142 <6032823+jack1142@users.noreply.github.com>
Sun, 13 Sep 2020 15:01:31 +0000 (17:01 +0200)
committerGitHub <noreply@github.com>
Sun, 13 Sep 2020 15:01:31 +0000 (11:01 -0400)
commitd25e225c05b577c38a13c440dfc72fcfb35c7010
tree33ea3a9cc96b84bf1c84f99aacbfc43c2528e4a9
parent0a7463e055126d9836d387da4e8ae13a2edf7ecb
Allow non-yielding functions in `tornado.gen.coroutine`'s type hint (#2909)

`@gen.coroutine` deco allows non-yielding functions, so I reflected that in the type hint.

Requires usage of `@typing.overload` due to python/mypy#9435
tornado/gen.py