Skip to content

Conversation

@Abe016
Copy link

@Abe016 Abe016 commented Oct 7, 2025

This pull request adds strict=True to zip() in pandas/tests/indexes to enforce Ruff rule B905.

@jbrockmendel
Copy link
Member

FAILED pandas/tests/indexes/multi/test_constructors.py::test_from_tuples_iterator - TypeError: MultiIndex.from_tuples() got an unexpected keyword argument 'strict'

)

result = MultiIndex.from_tuples(zip([1, 3], [2, 4]), names=["a", "b"])
result = MultiIndex.from_tuples(zip([1, 3], [2, 4]), names=["a", "b"], strict=True)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is wrong, you're passing strict=True to from_tuples() and not zip().

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.

3 participants