diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2018-11-04 23:39:14 +0900 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2018-11-05 01:20:24 +0900 |
commit | 545bb77b1ea52a9373b4d46f37e68f8768fc7ede (patch) | |
tree | 10f7275b2decb102e377f914f4e3bba252163148 /sphinx/io.py | |
parent | 1562682c8b990a4f33e94766cbfc0585f8b818d9 (diff) | |
download | sphinx-git-545bb77b1ea52a9373b4d46f37e68f8768fc7ede.tar.gz |
Fix typehints: sphinx.io
Diffstat (limited to 'sphinx/io.py')
-rw-r--r-- | sphinx/io.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sphinx/io.py b/sphinx/io.py index e93287904..979af7a99 100644 --- a/sphinx/io.py +++ b/sphinx/io.py @@ -41,7 +41,7 @@ from sphinx.versioning import UIDTransform if False: # For type annotation - from typing import Any, Dict, List, Tuple, Union # NOQA + from typing import Any, Dict, List, Tuple, Type, Union # NOQA from docutils import nodes # NOQA from docutils.io import Input # NOQA from docutils.parsers import Parser # NOQA @@ -69,7 +69,7 @@ class SphinxBaseReader(standalone.Reader): standalone.Reader.__init__(self, *args, **kwargs) def get_transforms(self): - # type: () -> List[Transform] + # type: () -> List[Type[Transform]] return standalone.Reader.get_transforms(self) + self.transforms def new_document(self): @@ -101,7 +101,7 @@ class SphinxStandaloneReader(SphinxBaseReader): UnreferencedFootnotesDetector, SphinxSmartQuotes, ManpageLink, SphinxDomains, SubstitutionDefinitionsRemover, DoctreeReadEvent, UIDTransform, - ] # type: List[Transform] + ] # type: List[Type[Transform]] def __init__(self, app, *args, **kwargs): # type: (Sphinx, Any, Any) -> None @@ -123,7 +123,7 @@ class SphinxI18nReader(SphinxBaseReader): AutoNumbering, SortIds, RemoveTranslatableInline, FilterSystemMessages, RefOnlyBulletListTransform, UnreferencedFootnotesDetector, SphinxSmartQuotes, ManpageLink, - SubstitutionDefinitionsRemover] + SubstitutionDefinitionsRemover] # type: List[Type[Transform]] def set_lineno_for_reporter(self, lineno): # type: (int) -> None |