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

fix iterables to list when indexed in iterated context #12

Closed
graingert opened this issue May 18, 2020 · 0 comments
Closed

fix iterables to list when indexed in iterated context #12

graingert opened this issue May 18, 2020 · 0 comments

Comments

@graingert
Copy link
Contributor

Description

PyCQA/modernize#204

input:

print(set(zip(*[(1, 2)])[0]))

output:

print(set(zip(*[(1, 2)])[0]))

expected:

print(set(list(zip(*[(1, 2)]))[0]))

Details

  • OS:
  • Python version:
  • fissix version:
  • Can you repro on master?
  • Can you repro in a clean virtualenv?
@graingert graingert changed the title https://github.com/python-modernize/python-modernize/issues/204 fix iterables to list when indexed in iterated context May 18, 2020
graingert added a commit to graingert/fissix that referenced this issue May 18, 2020
graingert added a commit to graingert/fissix that referenced this issue Jun 1, 2020
graingert added a commit to graingert/fissix that referenced this issue Jun 1, 2020
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

2 participants