Skip to content

Conversation

asoledad33
Copy link
Contributor

@asoledad33 asoledad33 commented Oct 5, 2025

This PR adds the strict=True argument to the zip() calls in pandas/core/dtypes in order to enforce Ruff rule B905.

Changes

  • Added to strict=True to a zip function call in pandas/core/dtypes/missing.py.
  • Caller function array_equivalent() already applies an array length check before calling _array_equivalent_object() which invokes the zip function on the given arrays.

Testing

@mroeschke mroeschke added the Code Style Code style, linting, code_checks label Oct 5, 2025
@mroeschke mroeschke added this to the 3.0 milestone Oct 5, 2025
@mroeschke mroeschke merged commit 8990616 into pandas-dev:main Oct 5, 2025
46 of 47 checks passed
@mroeschke
Copy link
Member

Thanks @asoledad33

jzwick pushed a commit to jzwick/pandas that referenced this pull request Oct 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Code Style Code style, linting, code_checks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants