diff options
-rw-r--r-- | sphinx/io.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sphinx/io.py b/sphinx/io.py index de6432983..8c7fb0639 100644 --- a/sphinx/io.py +++ b/sphinx/io.py @@ -63,6 +63,8 @@ class SphinxBaseReader(standalone.Reader): This replaces reporter by Sphinx's on generating document. """ + transforms = [] # type: List[Type[Transform]] + def __init__(self, app, *args, **kwargs): # type: (Sphinx, Any, Any) -> None self.env = app.env @@ -100,8 +102,7 @@ class SphinxStandaloneReader(SphinxBaseReader): RemoveTranslatableInline, FilterSystemMessages, RefOnlyBulletListTransform, UnreferencedFootnotesDetector, SphinxSmartQuotes, ManpageLink, SphinxDomains, SubstitutionDefinitionsRemover, DoctreeReadEvent, - UIDTransform, - ] # type: List[Type[Transform]] + UIDTransform] def __init__(self, app, *args, **kwargs): # type: (Sphinx, Any, Any) -> None @@ -123,7 +124,7 @@ class SphinxI18nReader(SphinxBaseReader): AutoNumbering, SortIds, RemoveTranslatableInline, FilterSystemMessages, RefOnlyBulletListTransform, UnreferencedFootnotesDetector, SphinxSmartQuotes, ManpageLink, - SubstitutionDefinitionsRemover] # type: List[Type[Transform]] + SubstitutionDefinitionsRemover] def set_lineno_for_reporter(self, lineno): # type: (int) -> None |