manim icon indicating copy to clipboard operation
manim copied to clipboard

Strengthen strict=False passes to zip() calls

Open behackl opened this issue 10 months ago • 1 comments

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:

  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: c14f3bbaaff021f1e2030cc88bcd6fe70d00f946
  • Message: "chore: resolve zip without explicit strict calls with strict=False everywhere"

behackl avatar Jan 13 '26 00:01 behackl

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?

Rice-one avatar Oct 09 '26 16:10 Rice-one