Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sphinx-doc/sphinx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2019-12-29 17:56:30 +0300
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2019-12-30 11:22:56 +0300
commitab184ac20d82d0546c21f33d2fdfbfb324078d56 (patch)
tree225b6c5f9904d8699332add3cb0939fb8be68ef2 /sphinx/highlighting.py
parent7a4bbf372a470700a1dfd96dd57054bb96b92fd3 (diff)
mypy: Enable disallow_incomplete_defs flag for type checking
Diffstat (limited to 'sphinx/highlighting.py')
-rw-r--r--sphinx/highlighting.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sphinx/highlighting.py b/sphinx/highlighting.py
index 694a41d61..14b56671a 100644
--- a/sphinx/highlighting.py
+++ b/sphinx/highlighting.py
@@ -93,7 +93,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)
@@ -155,7 +155,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()