diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2020-01-01 11:39:46 +0900 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2020-01-01 11:39:46 +0900 |
commit | e628afd5cd0c565f1e33abb01cac26180455182f (patch) | |
tree | 3b7cddfe175c444588a0b8d9e80430faeb994b8c /sphinx/highlighting.py | |
parent | 9458d631d0393956005754ed8137809e15635467 (diff) | |
parent | c5b653433d3fbdca47396f17161685f50d994320 (diff) | |
download | sphinx-git-e628afd5cd0c565f1e33abb01cac26180455182f.tar.gz |
Merge branch '2.0'
Diffstat (limited to 'sphinx/highlighting.py')
-rw-r--r-- | sphinx/highlighting.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sphinx/highlighting.py b/sphinx/highlighting.py index 9ef753253..f3445d1bd 100644 --- a/sphinx/highlighting.py +++ b/sphinx/highlighting.py @@ -4,7 +4,7 @@ Highlight code blocks using Pygments. - :copyright: Copyright 2007-2019 by the Sphinx team, see AUTHORS. + :copyright: Copyright 2007-2020 by the Sphinx team, see AUTHORS. :license: BSD, see LICENSE for details. """ @@ -84,7 +84,7 @@ class PygmentsBridge: else: return get_style_by_name(stylename) - def get_formatter(self, **kwargs) -> Formatter: + def get_formatter(self, **kwargs: Any) -> Formatter: kwargs.update(self.formatter_args) return self.formatter(**kwargs) @@ -133,7 +133,7 @@ class PygmentsBridge: return lexer def highlight_block(self, source: str, lang: str, opts: Dict = None, - force: bool = False, location: Any = None, **kwargs) -> str: + force: bool = False, location: Any = None, **kwargs: Any) -> str: if not isinstance(source, str): source = source.decode() |