-
Notifications
You must be signed in to change notification settings - Fork 109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Opinionated warning: require strict=
argument to zip()
builtin
#311
Labels
Comments
Sounds helpful and worth adding. I for one didn't know this was added. Could we not just enable it only for >= 3.10 by default and not for < 3.10? |
I don't think we can (consistently) tell what the intended my minimum Python version should be, so enabled by default doesn't seem practical until 3.9 reaches end of life. |
Zac-HD
added a commit
that referenced
this issue
Dec 6, 2022
anthrotype
added a commit
to googlefonts/fontmake
that referenced
this issue
Dec 8, 2022
this is py3.10 only, a bit too early for that PyCQA/flake8-bugbear#311
hotenov
added a commit
to hotenov/LEP-downloader
that referenced
this issue
Jan 11, 2023
…hon 3.9 is used) Ignore B905 temporarily (see PyCQA/flake8-bugbear#311)
busgaidw2
added a commit
to busgaidw2/flake8-bugbear
that referenced
this issue
Aug 6, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In Python 3.10, PEP-618 added optional length-checking to
zip()
.Requiring uses of
zip()
to declare eitherstrict=
would be a nice option to prevent bugs when the argument was omitted, and the iterables were unexpectedly of different lengths. Of course it could also be pretty noisy, not to mention requiring Python 3.10 or later, so I think this should be disabled by default.The text was updated successfully, but these errors were encountered: