Skip to content

Commit

Permalink
Use dict literal (Pylint R1735)
Browse files Browse the repository at this point in the history
  • Loading branch information
peterdemin committed Feb 1, 2023
1 parent a998381 commit 510ad63
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pipcompilemulti/features/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ def decorate(self, command):
def decorator(self):
"""Create click command decorator with this option."""
args = [self.long_option]
kwargs = dict(
is_flag=self.is_flag,
multiple=self.multiple,
help=self.help_text,
)
kwargs = {
"is_flag": self.is_flag,
"multiple": self.multiple,
"help": self.help_text,
}
if self.short_option:
args.append(self.short_option)
if self.default:
Expand Down

0 comments on commit 510ad63

Please sign in to comment.