]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
Always import Type.
authorRey Abolofia <rabolofia@newrelic.com>
Mon, 30 Jul 2018 23:15:49 +0000 (16:15 -0700)
committerRey Abolofia <rabolofia@newrelic.com>
Mon, 30 Jul 2018 23:15:49 +0000 (16:15 -0700)
tornado/util.py

index b46892af91a2d4d100175be6c2b2910342dc380b..9991b3a5064a5f26bf84cabfff8bb8426b7489e7 100644 (file)
@@ -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