From c3af2c514cb867f88b2b745275c5dd1eb17eb8bd Mon Sep 17 00:00:00 2001 From: Rey Abolofia Date: Mon, 30 Jul 2018 16:15:49 -0700 Subject: [PATCH] Always import Type. --- tornado/util.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 -- 2.47.2