Skip to content

Conversation

CODEBRAKERBOYY
Copy link

This PR adds explicit strict arguments to all zip() calls in pandas/core/arrays, per Ruff rule B905 (zip-without-explicit-strict).

Changes made:

  • Added strict=True to zip() in base.py
  • Added strict=True to zip() in period.py
  • Added strict=True to zip() in categorical.py

Rationale:
*These calls assume equal-length inputs, so enforcing strict=True makes the assumption explicit.

  • No truncation was intended, so strict=False was not needed.

Part of #62434.

@CODEBRAKERBOYY
Copy link
Author

I worked on pandas/core/arrays. Opened PR: #62528

@CODEBRAKERBOYY CODEBRAKERBOYY deleted the add-zip-strict-core-arrays branch October 3, 2025 06:50
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.

1 participant