Skip to content

Strengthen strict=False passes to zip() calls #4521

@behackl

Description

@behackl

In PR #4520, commit c14f3bb added strict=False to many zip() calls across the codebase to resolve ruff linting issues.

This was necessary to suppress warnings about zip calls without explicit strict parameters. However, these should ideally be reviewed and strengthened where possible - either by:

  1. Using strict=True where the iterables are known to have equal length
  2. Adding proper validation logic to handle mismatched lengths
  3. Refactoring code to avoid zip entirely where appropriate

The commit touched ~37 files across the codebase, so this is a non-trivial cleanup task but would improve code quality and catch potential bugs earlier.

References:

  • Commit: c14f3bb
  • Message: "chore: resolve zip without explicit strict calls with strict=False everywhere"

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