Skip to content

Fix for Unused global variable#825

Merged
Andrey1994 merged 1 commit intomasterfrom
finding-autofix-3954e363
Apr 26, 2026
Merged

Fix for Unused global variable#825
Andrey1994 merged 1 commit intomasterfrom
finding-autofix-3954e363

Conversation

@Andrey1994
Copy link
Copy Markdown
Member

Use _ as the loop variable for loops where the counter is intentionally unused. In Python, _ is the conventional placeholder name for values that are not needed. This keeps behavior identical and removes the unused-variable warning.

In python_package/examples/tests/eego_impedances_and_eeg.py, replace both for i in range(...) loops with for _ in range(...). No imports, helper methods, or additional definitions are 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:27
@Andrey1994 Andrey1994 merged commit c430e27 into master Apr 26, 2026
0 of 38 checks passed
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