]> git.ipfire.org Git - thirdparty/tornado.git/commit
gen: Type annotate the module
authorBen Darnell <ben@bendarnell.com>
Sat, 11 Aug 2018 15:27:13 +0000 (11:27 -0400)
committerBen Darnell <ben@bendarnell.com>
Sat, 11 Aug 2018 17:23:42 +0000 (13:23 -0400)
commit467fec4b758fba442698c1ee252ed34fa90b1418
tree1dbb5dd3e47b217dfc413f67c75714d79cba56bb
parent9f4f0f4414b412f9655ce3fc988b9b268b1d5dff
gen: Type annotate the module

This is a tricky module to type. In some cases mypy just isn't able to
express things (e.g. decorators that preserve the parameter types of
their functions but change the return type), and in others I think
it's possible to do better but I haven't figured out how (preserving
types passed through with_timeout).
setup.cfg
tornado/gen.py
tornado/test/gen_test.py