Skip to content

Commit d31b5e7

Browse files
Fixed E741 occurence (#248)
1 parent d95b86b commit d31b5e7

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ lint.ignore = [
9595
"SIM105", # Use `contextlib.suppress`
9696
"S110", # `try`-`except`-`pass` detected, consider logging the exception
9797
"E701", # Multiple statements on one line (colon)
98-
"E741", # Ambiguous variable name
9998
]
10099
[tool.ruff.lint.per-file-ignores]
101100
"*/__init__.py" = [

src/petab_gui/views/simple_plot_view.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -477,11 +477,11 @@ def _on_pick(self, event):
477477
label = None
478478
data_type = "measurement" # Default to measurement
479479

480-
for h, l in zip(handles, labels, strict=False):
481-
if h is artist:
480+
for handle, lbl in zip(handles, labels, strict=False):
481+
if handle is artist:
482482
# Extract observable ID and data type from legend label
483483
# Format can be: "observableId", "datasetId observableId", or "datasetId observableId simulation"
484-
label_parts = l.split()
484+
label_parts = lbl.split()
485485
if len(label_parts) == 0:
486486
continue
487487

0 commit comments

Comments
 (0)