Skip to content

Fix for Unused global variable#824

Merged
Andrey1994 merged 1 commit into
masterfrom
finding-autofix-85cc263f
Apr 26, 2026
Merged

Fix for Unused global variable#824
Andrey1994 merged 1 commit into
masterfrom
finding-autofix-85cc263f

Conversation

@Andrey1994
Copy link
Copy Markdown
Member

To fix this, replace unused loop variable names with _ in loops where the counter is not used.

Best minimal fix in python_package/examples/tests/eego_impedances_and_eeg.py:

  • Change line 20 from for i in range(5): to for _ in range(5):
  • Change line 29 from for i in range(3): to for _ in range(3):

No behavior changes, no new imports, no additional methods/definitions needed.

Suggested fixes powered by Copilot Autofix. Review carefully before merging.

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
@Andrey1994 Andrey1994 marked this pull request as ready for review April 26, 2026 16:26
@Andrey1994 Andrey1994 merged commit 4d0cc5b into master Apr 26, 2026
38 checks passed
@Andrey1994 Andrey1994 deleted the finding-autofix-85cc263f branch May 9, 2026 15:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant