Skip to content

Update collection literals and comprehensions#2108

Merged
mhammond merged 1 commit intomhammond:mainfrom
Avasam:Update-collections-literals-and-comprehensions
Sep 21, 2023
Merged

Update collection literals and comprehensions#2108
mhammond merged 1 commit intomhammond:mainfrom
Avasam:Update-collections-literals-and-comprehensions

Conversation

@Avasam
Copy link
Copy Markdown
Collaborator

@Avasam Avasam commented Aug 22, 2023

Extracted from, and improved over #2100
These were found by running ruff . --select=C4 --exclude=build --exclude=Pythonwin/Scintilla --exclude=adodbapi
Documentation: https://beta.ruff.rs/docs/rules/#flake8-comprehensions-c4

This PR uses more modern collection literals and comprehensions where applicable. There's some expected performance gains here from the use of comprehensions and less function call overhead. On top of often more concise syntax

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