diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2018-11-23 19:23:41 +0900 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2018-11-23 19:23:41 +0900 |
commit | 24564892699384ee37f283850ae224c5a90c988b (patch) | |
tree | acea51a6260e3e8bfe713a46e43bb49c0e60c55c /sphinx/transforms/post_transforms/code.py | |
parent | aef14afef937fc87fadc455f5f549e7254733147 (diff) | |
download | sphinx-git-24564892699384ee37f283850ae224c5a90c988b.tar.gz |
Adjust type annotations for transforms to docutils'
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 |