Closed jolaf closed 2 months ago
My understanding is that now that PEP 649 has been accepted, the behavior of from __future__ import annotations
will never become the default and will in fact be deprecated and removed. Therefore it doesn't make sense for Tornado to invest in this mode today.
Well, that's good news, thanks!
tornado
source modules do not includefrom __future__ import annotations
.This is not a problem during normal operation but becomes an issue when trying to validate the typing correctness of the app using
typeguard
. The typical problem looks like this:Also, using
from __future__ import annotations
allows to avoid quoting in typing annotations, spelling just-> ContextManager
instead of-> "ContextManager"
, which improves code readability.