diff options
Diffstat (limited to 'sphinx/transforms/post_transforms/code.py')
-rw-r--r-- | sphinx/transforms/post_transforms/code.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sphinx/transforms/post_transforms/code.py b/sphinx/transforms/post_transforms/code.py index 3e7cbcb1a..66369285c 100644 --- a/sphinx/transforms/post_transforms/code.py +++ b/sphinx/transforms/post_transforms/code.py @@ -40,7 +40,8 @@ class HighlightLanguageTransform(SphinxTransform): """ default_priority = 400 - def apply(self): + def apply(self, **kwargs): + # type: (Any) -> None visitor = HighlightLanguageVisitor(self.document, self.config.highlight_language) self.document.walkabout(visitor) @@ -105,7 +106,8 @@ class TrimDoctestFlagsTransform(SphinxTransform): """ default_priority = HighlightLanguageTransform.default_priority + 1 - def apply(self): + def apply(self, **kwargs): + # type: (Any) -> None if not self.config.trim_doctest_flags: return |