Skip to content

Conversation

@Unkwn1
Copy link
Contributor

@Unkwn1 Unkwn1 commented Dec 13, 2025

As a result of the addition from #62843, some calls to zip() in pandas/core/reshape/concat.py did not adhere to Ruff rule B905 as outlined in #62434.

Also, I noticed there are a lot of files still listed as "Todo: fix B905" in pyproject.toml even though all of their zip() calls seem to be already fixed to have a "strict" parameter. Shouldn't those files be removed from the todo list or is there something else I'm missing here?

@Unkwn1 Unkwn1 marked this pull request as draft December 13, 2025 10:15
@Unkwn1 Unkwn1 marked this pull request as ready for review December 13, 2025 19:02
or all(
prev is curr for prev, curr in zip(non_concat_axis, non_concat_axis[1:])
prev is curr
for prev, curr in zip(
Copy link
Member

Choose a reason for hiding this comment

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

Can you use itertools.pairwise for both changes?

@mroeschke mroeschke added this to the 3.0 milestone Dec 14, 2025
@mroeschke mroeschke added the Code Style Code style, linting, code_checks label Dec 14, 2025
@mroeschke mroeschke merged commit ecf28e5 into pandas-dev:main Dec 14, 2025
51 of 86 checks passed
@mroeschke
Copy link
Member

Thanks @Unkwn1

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