Skip to content

Use list comprehensions instead of list(filter(...)) #5578

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

Merged
merged 4 commits into from
Jun 23, 2022

Conversation

maffoo
Copy link
Contributor

@maffoo maffoo commented Jun 22, 2022

The list comprehensions are more idiomatic, don't require creating lambdas, and also end up being shorter when formatted.

The list comprehensions are more idiomatic, don't require creating
lambdas, and also end up being shorter when formatted.
@maffoo maffoo requested review from wcourtney, a team, vtomole, cduck and verult as code owners June 22, 2022 21:24
@CirqBot CirqBot added the size: M 50< lines changed <250 label Jun 22, 2022
@dabacon dabacon added the automerge Tells CirqBot to sync and merge this PR. (If it's running.) label Jun 23, 2022
@CirqBot CirqBot added the front_of_queue_automerge CirqBot uses this label to indicate (and remember) what's being merged next. label Jun 23, 2022
@CirqBot
Copy link
Collaborator

CirqBot commented Jun 23, 2022

Automerge cancelled: A required status check is not present.

Missing statuses: ['Typescript lint check', 'Typescript tests', 'Typescript tests coverage']

@CirqBot CirqBot removed automerge Tells CirqBot to sync and merge this PR. (If it's running.) front_of_queue_automerge CirqBot uses this label to indicate (and remember) what's being merged next. labels Jun 23, 2022
@vtomole
Copy link
Collaborator

vtomole commented Jun 23, 2022

This PR has flaked due to #5574. Re-running.

@vtomole vtomole added the automerge Tells CirqBot to sync and merge this PR. (If it's running.) label Jun 23, 2022
@CirqBot CirqBot added the front_of_queue_automerge CirqBot uses this label to indicate (and remember) what's being merged next. label Jun 23, 2022
@CirqBot
Copy link
Collaborator

CirqBot commented Jun 23, 2022

Automerge cancelled: A status check is failing.

@CirqBot CirqBot removed automerge Tells CirqBot to sync and merge this PR. (If it's running.) front_of_queue_automerge CirqBot uses this label to indicate (and remember) what's being merged next. labels Jun 23, 2022
@vtomole
Copy link
Collaborator

vtomole commented Jun 23, 2022

Re-ran 3 times. The flake absolutely can't go away.

@maffoo maffoo merged commit 6d489bd into master Jun 23, 2022
@maffoo maffoo deleted the u/maffoo/comprehensions branch June 23, 2022 22:03
rht pushed a commit to rht/Cirq that referenced this pull request May 1, 2023
The list comprehensions are more idiomatic, don't require creating
lambdas, and also end up being shorter when formatted.

Co-authored-by: Dave Bacon <[email protected]>
harry-phasecraft pushed a commit to PhaseCraft/Cirq that referenced this pull request Oct 31, 2024
The list comprehensions are more idiomatic, don't require creating
lambdas, and also end up being shorter when formatted.

Co-authored-by: Dave Bacon <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size: M 50< lines changed <250
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants