Skip to content

Commit 97b7e63

Browse files
Apply refurb/ruff rule FURB115 (#11838)
1 parent 9910e5c commit 97b7e63

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sphinx/directives/code.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ def lines_filter(
287287
'set of "lines"'))
288288

289289
lines = [lines[n] for n in linelist if n < len(lines)]
290-
if lines == []:
290+
if not lines:
291291
raise ValueError(__('Line spec %r: no lines pulled from include file %r') %
292292
(linespec, self.filename))
293293

0 commit comments

Comments
 (0)