Skip to content

[flake8-bugbear] Document explicitly disabling strict zip (B905)#11040

Merged
charliermarsh merged 3 commits intoastral-sh:mainfrom
jfrost-mo:B905_clarification
Apr 19, 2024
Merged

[flake8-bugbear] Document explicitly disabling strict zip (B905)#11040
charliermarsh merged 3 commits intoastral-sh:mainfrom
jfrost-mo:B905_clarification

Conversation

@jfrost-mo
Copy link
Contributor

Occasionally you intentionally have iterables of differing lengths. The rule permits this by explicitly adding strict=False, but this was not documented.

Summary

The rule does not currently document how to avoid it when having differing length iterables is intentional. This PR adds that to the rule documentation.

Test Plan

Small documentation change, untested.

Occasionally you intentionally have iterables of differing lengths. The
rule permits this by explicitly adding `strict=False`, but this was not
documented.
Co-authored-by: Vasco Schiavo <115561717+VascoSch92@users.noreply.github.com>
@charliermarsh charliermarsh self-assigned this Apr 19, 2024
@charliermarsh charliermarsh added the documentation Improvements or additions to documentation label Apr 19, 2024
@charliermarsh
Copy link
Member

Thanks!

@charliermarsh charliermarsh enabled auto-merge (squash) April 19, 2024 13:42
@charliermarsh charliermarsh merged commit 7b3c92a into astral-sh:main Apr 19, 2024
@github-actions
Copy link
Contributor

ruff-ecosystem results

Linter (stable)

✅ ecosystem check detected no linter changes.

Linter (preview)

✅ ecosystem check detected no linter changes.

@jfrost-mo jfrost-mo deleted the B905_clarification branch April 19, 2024 13:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants