summaryrefslogtreecommitdiff
path: root/sphinx/transforms/post_transforms/code.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2018-11-23 19:23:41 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2018-11-23 19:23:41 +0900
commit24564892699384ee37f283850ae224c5a90c988b (patch)
treeacea51a6260e3e8bfe713a46e43bb49c0e60c55c /sphinx/transforms/post_transforms/code.py
parentaef14afef937fc87fadc455f5f549e7254733147 (diff)
downloadsphinx-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.py6
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