Skip to content

iterative_jump contains unused iterator result #466

Description

@braingram

The iterator returned by range(ndiffs) is unused (violating B007).

for i in range(ndiffs): # Can't have more than ndiffs CRs per pixel!

This may be expected (since cr_pix is recomputed during the loop) but it's unclear why range(ndiffs) is used. If the current behavior is as expected it seems worth remomving the noqa and assigning to _ instead of i.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions