Skip to content

Commit 83e20cc

Browse files
alexfiklinducer
authored andcommitted
fix: ruff 0.11.4 warning for tuple splatting (RUF005)
1 parent 5731120 commit 83e20cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sumpy/tools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -603,7 +603,7 @@ def nullspace(m, atol=0):
603603
vec = [0]*cols
604604
vec[free_var] = 1
605605
for piv_row, piv_col in enumerate(pivot_cols):
606-
for pos in pivot_cols[piv_row+1:] + [free_var]:
606+
for pos in (*pivot_cols[piv_row+1:], free_var):
607607
if isinstance(mat[piv_row, pos], sym.Integer):
608608
vec[piv_col] -= int(mat[piv_row, pos])
609609
else:

0 commit comments

Comments
 (0)