Skip to content

[Python][CodeQL] Clean up unused loop iteration variables#22707

Open
siliataider wants to merge 1 commit into
root-project:masterfrom
siliataider:code-quality-2
Open

[Python][CodeQL] Clean up unused loop iteration variables#22707
siliataider wants to merge 1 commit into
root-project:masterfrom
siliataider:code-quality-2

Conversation

@siliataider

Copy link
Copy Markdown
Contributor

This Pull request:

Changes or fixes:

Minor cleanup: CodeQL flags loop variables that are never used inside the loop
Just renaming unused loop/unpack variables to _

@siliataider siliataider self-assigned this Jun 25, 2026
# Tests
def test_basic_type_branch(self):
f,t,c = self.get_tree_and_chain()
_,t,c = self.get_tree_and_chain()

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if this is correct here. Don't we need to keep the file around explicitly because it's the owner of t and c?

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.

2 participants