From 9e1786e85a7ef522a2fe569c526fce43dbb31ba1 Mon Sep 17 00:00:00 2001 From: Alexandru Fikl Date: Sun, 6 Apr 2025 19:03:41 +0300 Subject: [PATCH] fix: ruff 0.11.4 warning for tuple splatting (RUF005) --- sumpy/tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sumpy/tools.py b/sumpy/tools.py index 8251c8bb6..7ada6ad32 100644 --- a/sumpy/tools.py +++ b/sumpy/tools.py @@ -603,7 +603,7 @@ def nullspace(m, atol=0): vec = [0]*cols vec[free_var] = 1 for piv_row, piv_col in enumerate(pivot_cols): - for pos in pivot_cols[piv_row+1:] + [free_var]: + for pos in (*pivot_cols[piv_row+1:], free_var): if isinstance(mat[piv_row, pos], sym.Integer): vec[piv_col] -= int(mat[piv_row, pos]) else: