diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2018-10-16 09:56:40 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-16 09:56:40 +0900 |
commit | be2b86cc15a2f5fca1581c25ebf2db9a189dbc41 (patch) | |
tree | 07ace712b6137c3a878ff6ab309bbefbd35397dc /sphinx/highlighting.py | |
parent | 8c56fd87479291e2e6b901d3ed44e889d27801da (diff) | |
parent | a77f3519fa11793f939e4a28947e57df9afde793 (diff) | |
download | sphinx-git-be2b86cc15a2f5fca1581c25ebf2db9a189dbc41.tar.gz |
Merge pull request #5537 from tk0miya/mypy-0.641
Fix mypy violations
Diffstat (limited to 'sphinx/highlighting.py')
-rw-r--r-- | sphinx/highlighting.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sphinx/highlighting.py b/sphinx/highlighting.py index b344dc16b..21e3420ba 100644 --- a/sphinx/highlighting.py +++ b/sphinx/highlighting.py @@ -149,8 +149,8 @@ class PygmentsBridge(object): # trim doctest options if wanted if isinstance(lexer, PythonConsoleLexer) and self.trim_doctest_flags: - source = doctest.blankline_re.sub('', source) # type: ignore - source = doctest.doctestopt_re.sub('', source) # type: ignore + source = doctest.blankline_re.sub('', source) + source = doctest.doctestopt_re.sub('', source) # highlight via Pygments formatter = self.get_formatter(**kwargs) |