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

Remove unnecessary generator #8283

Merged
merged 1 commit into from
Aug 14, 2021
Merged

Conversation

deepsource-autofix[bot]
Copy link
Contributor

No description provided.

@rtibbles rtibbles force-pushed the deepsource-fix-ad053a8a branch from 19b7800 to 6d8d61b Compare August 13, 2021 23:29
@rtibbles rtibbles merged commit af46827 into release-v0.15.x Aug 14, 2021
@rtibbles rtibbles deleted the deepsource-fix-ad053a8a branch August 14, 2021 02:46
new_group_ids = set(x.id for x in collections)
new_group_ids = {x.id for x in collections}
Copy link
Contributor

@indirectlylit indirectlylit Aug 16, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TIL about set comprehensions.

To be honest, I personally prefer the set syntax with the extra three characters ¯\_(ツ)_/¯ because this looks like a broken dict to me...

Anyways no biggie

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a minor performance win to use the comprehension directly.

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

Successfully merging this pull request may close these issues.

2 participants