Skip to content

Commit e400fab

Browse files
committed
Resolve pylint R1716 by chaining the comparison
1 parent b84e0d8 commit e400fab

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

pytest_pyodide/decorator.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -345,11 +345,7 @@ def _locate_funcdef(
345345
):
346346
statements.append(node)
347347

348-
if (
349-
node.end_lineno
350-
and node.end_lineno > func_line_no
351-
and node.lineno < func_line_no
352-
):
348+
if node.end_lineno and node.end_lineno > func_line_no > node.lineno:
353349
it = iter(node.body) # type: ignore[attr-defined]
354350
continue
355351

0 commit comments

Comments
 (0)