Strengthen strict=False passes to zip() calls
In PR #4520, commit c14f3bbaaff021f1e2030cc88bcd6fe70d00f946 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:
- Using
strict=Truewhere the iterables are known to have equal length - Adding proper validation logic to handle mismatched lengths
- 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: c14f3bbaaff021f1e2030cc88bcd6fe70d00f946
- Message: "chore: resolve zip without explicit strict calls with strict=False everywhere"
Hi! @behackl! My name is Rice. I’m a Software Engineering student at Fudan University in China.
I’m interested in working on this follow-up to #4520.
Before I begin, could you confirm whether this cleanup is still welcome in the current development cycle, and whether you would prefer one repository-wide PR or a module-scoped first PR with corresponding tests?