diff options
Diffstat (limited to 'sphinx/util/__init__.py')
-rw-r--r-- | sphinx/util/__init__.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sphinx/util/__init__.py b/sphinx/util/__init__.py index 0d54e1482..b9c2890f7 100644 --- a/sphinx/util/__init__.py +++ b/sphinx/util/__init__.py @@ -24,9 +24,7 @@ from datetime import datetime from hashlib import md5 from os import path from time import mktime, strptime -from typing import ( - Any, Callable, Dict, IO, Iterable, Iterator, List, Pattern, Set, Tuple, Type -) +from typing import Any, Callable, Dict, IO, Iterable, Iterator, List, Pattern, Set, Tuple from urllib.parse import urlsplit, urlunsplit, quote_plus, parse_qsl, urlencode from sphinx.deprecation import RemovedInSphinx40Warning @@ -50,6 +48,7 @@ from sphinx.util.matching import patfilter # noqa if False: # For type annotation + from typing import Type # for python3.5.1 from sphinx.application import Sphinx @@ -623,7 +622,7 @@ class progress_message: def __enter__(self) -> None: logger.info(bold(self.message + '... '), nonl=True) - def __exit__(self, exc_type: Type[Exception], exc_value: Exception, traceback: Any) -> bool: # NOQA + def __exit__(self, exc_type: "Type[Exception]", exc_value: Exception, traceback: Any) -> bool: # NOQA if isinstance(exc_value, SkipProgressMessage): logger.info(__('skipped')) if exc_value.args: |