From: Rey Abolofia Date: Mon, 30 Jul 2018 23:15:49 +0000 (-0700) Subject: Always import Type. X-Git-Tag: v6.0.0b1~38^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c3af2c514cb867f88b2b745275c5dd1eb17eb8bd;p=thirdparty%2Ftornado.git Always import Type. --- diff --git a/tornado/util.py b/tornado/util.py index b46892af9..9991b3a50 100644 --- a/tornado/util.py +++ b/tornado/util.py @@ -18,14 +18,16 @@ import re import typing import zlib -from typing import Any, Optional, Dict, Mapping, List, Tuple, Match, Callable +from typing import ( + Any, Optional, Dict, Mapping, List, Tuple, Match, Callable, Type, +) if typing.TYPE_CHECKING: # Additional imports only used in type comments. # This lets us make these imports lazy. import datetime # noqa import types # noqa - from typing import Type, Union # noqa + from typing import Union # noqa import unittest # noqa # Aliases for types that are spelled differently in different Python