summaryrefslogtreecommitdiff
path: root/sphinx/pycode/parser.py
diff options
context:
space:
mode:
authorAdam Turner <9087854+aa-turner@users.noreply.github.com>2023-02-15 00:54:44 +0000
committerAdam Turner <9087854+aa-turner@users.noreply.github.com>2023-02-15 02:09:47 +0000
commitbb9821b968388b788e5af7f079b738302416bb9a (patch)
treebddd65fed1563a181c315b9d169aeabc8a8b2e6b /sphinx/pycode/parser.py
parent6ffe7be080943130364bac7633bfc1f4f579ef90 (diff)
downloadsphinx-git-bb9821b968388b788e5af7f079b738302416bb9a.tar.gz
Resolve Ruff SIM114 violations
Diffstat (limited to 'sphinx/pycode/parser.py')
-rw-r--r--sphinx/pycode/parser.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/pycode/parser.py b/sphinx/pycode/parser.py
index 7dd924822..49ef4f7ff 100644
--- a/sphinx/pycode/parser.py
+++ b/sphinx/pycode/parser.py
@@ -190,7 +190,7 @@ class AfterCommentParser(TokenProcessor):
tokens += self.fetch_until([OP, ']'])
elif self.current == INDENT:
tokens += self.fetch_until(DEDENT)
- elif self.current == [OP, ';']:
+ elif self.current == [OP, ';']: # NoQA: SIM114
break
elif self.current.kind not in (OP, NAME, NUMBER, STRING):
break