diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2020-03-07 04:45:39 +0300 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2020-03-07 13:36:41 +0300 |
commit | 6d4fefebf4ecee4416da016d8e647298003fb57a (patch) | |
tree | a0f8dedd36b9562a248bcf8bc8eab91d09136a58 /sphinx/parsers.py | |
parent | 3e0618ba3a84c7db51813cab43779d11c5fe7802 (diff) |
Deprecate codes for python 3.5
Diffstat (limited to 'sphinx/parsers.py')
-rw-r--r-- | sphinx/parsers.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sphinx/parsers.py b/sphinx/parsers.py index 3974d1c66..fb6c263c9 100644 --- a/sphinx/parsers.py +++ b/sphinx/parsers.py @@ -9,7 +9,7 @@ """ import warnings -from typing import Any, Dict, List, Union +from typing import Any, Dict, List, Type, Union import docutils.parsers import docutils.parsers.rst @@ -24,7 +24,6 @@ from sphinx.util.rst import append_epilog, prepend_prolog if False: # For type annotation from docutils.transforms import Transform # NOQA - from typing import Type # NOQA # for python3.5.1 from sphinx.application import Sphinx @@ -71,7 +70,7 @@ class Parser(docutils.parsers.Parser): class RSTParser(docutils.parsers.rst.Parser, Parser): """A reST parser for Sphinx.""" - def get_transforms(self) -> List["Type[Transform]"]: + def get_transforms(self) -> List[Type[Transform]]: """Sphinx's reST parser replaces a transform class for smart-quotes by own's refs: sphinx.io.SphinxStandaloneReader |