mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-06 21:16:54 +00:00
Replace for loop with list comprehension
This commit is contained in:
parent
9e550df7a0
commit
241546ddc5
1 changed files with 1 additions and 3 deletions
|
|
@ -290,9 +290,7 @@ class Option:
|
|||
}
|
||||
|
||||
def __repr__(self) -> str: # noqa: D105
|
||||
parts = []
|
||||
for arg in self.option_args:
|
||||
parts.append(arg)
|
||||
parts = [arg for arg in self.option_args]
|
||||
for k, v in self.filtered_option_kwargs.items():
|
||||
parts.append(f"{k}={v!r}")
|
||||
return f"Option({', '.join(parts)})"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue