summaryrefslogtreecommitdiff
path: root/sphinx/util/docutils.py
diff options
context:
space:
mode:
authorDaniel Eades <danieleades@hotmail.com>2022-12-15 17:22:07 +0000
committerJean-François B <2589111+jfbu@users.noreply.github.com>2022-12-16 16:50:24 +0100
commit1abb24e309c8189eca2663f77c3a3aa866633e12 (patch)
treee74425a4c2647b8a5c6c7c980f00235fc12491b5 /sphinx/util/docutils.py
parentdc29bf9abef764460ec5ec1c1571bddce9a4f7fa (diff)
downloadsphinx-git-1abb24e309c8189eca2663f77c3a3aa866633e12.tar.gz
remove blanket 'noqas'
Diffstat (limited to 'sphinx/util/docutils.py')
-rw-r--r--sphinx/util/docutils.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/sphinx/util/docutils.py b/sphinx/util/docutils.py
index d27ad6ba0..e45cf0db9 100644
--- a/sphinx/util/docutils.py
+++ b/sphinx/util/docutils.py
@@ -242,7 +242,9 @@ class CustomReSTDispatcher:
def __enter__(self) -> None:
self.enable()
- def __exit__(self, exc_type: Type[Exception], exc_value: Exception, traceback: Any) -> None: # NOQA
+ def __exit__(
+ self, exc_type: Type[Exception], exc_value: Exception, traceback: Any
+ ) -> None:
self.disable()
def enable(self) -> None:
@@ -373,7 +375,7 @@ def switch_source_input(state: State, content: StringList) -> Generator[None, No
# replace it by new one
state_machine = StateMachine([], None)
state_machine.input_lines = content
- state.memo.reporter.get_source_and_line = state_machine.get_source_and_line # type: ignore # NOQA
+ state.memo.reporter.get_source_and_line = state_machine.get_source_and_line # type: ignore # noqa: E501
yield
finally: