Skip to content

Commit da5a9d9

Browse files
committed
ignore false positive
Signed-off-by: Santiago Figueroa Manrique <[email protected]>
1 parent 8e420fd commit da5a9d9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/power_grid_model_io/functions/filters.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ def exclude_value(row: pd.Series, col: str, value: Union[float, str]) -> bool:
3131
if col not in row:
3232
raise ValueError(f"The column: '{col}' cannot be found for the filter")
3333
result = row[col] != value
34-
if isinstance(result, pd.Series):
35-
return result.item()
34+
if isinstance(result, pd.Series): # sonar-ignore: S2583
35+
return result.item() # sonar-ignore: S2583
3636
return result
3737

3838

0 commit comments

Comments
 (0)