Skip to content
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

B905 should not be raised for itertools.repeat #378

Closed
nonamethanks opened this issue Mar 28, 2023 · 2 comments
Closed

B905 should not be raised for itertools.repeat #378

nonamethanks opened this issue Mar 28, 2023 · 2 comments

Comments

@nonamethanks
Copy link

import itertools
list(zip([1, 2, 3], itertools.repeat("a")))

This should not raise a B905. repeat is by design infinite, that's the entire reason why it exists.

@NewGlad
Copy link
Contributor

NewGlad commented Aug 9, 2023

can be closed

@cooperlees
Copy link
Collaborator

Thanks!

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

No branches or pull requests

3 participants