Skip to content

Commit

Permalink
Black
Browse files Browse the repository at this point in the history
  • Loading branch information
lieryan committed Nov 28, 2022
1 parent 2703604 commit b52bc9c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 12 deletions.
4 changes: 1 addition & 3 deletions rope/contrib/generate.py
Expand Up @@ -62,9 +62,7 @@ def _check_exceptional_conditions(self):
)

def get_changes(self):
changes = change.ChangeSet(
f"Generate {self._get_element_kind()} <{self.name}>"
)
changes = change.ChangeSet(f"Generate {self._get_element_kind()} <{self.name}>")
indents = self.info.get_scope_indents()
blanks = self.info.get_blank_lines()
base_definition = sourceutils.fix_indentation(self._get_element(), indents)
Expand Down
4 changes: 1 addition & 3 deletions rope/refactor/functionutils.py
Expand Up @@ -98,9 +98,7 @@ def to_string(self):
if self.args[start:]:
params.extend(self.args[start:])
if self.keywords:
params.extend(
[f"{name}={value}" for name, value in self.keywords]
)
params.extend([f"{name}={value}" for name, value in self.keywords])
if self.args_arg is not None:
params.append("*" + self.args_arg)
if self.keywords_arg:
Expand Down
4 changes: 1 addition & 3 deletions rope/refactor/rename.py
Expand Up @@ -189,9 +189,7 @@ def _get_scope_offset(self):
return scope.get_region()

def get_changes(self, new_name, only_calls=False, reads=True, writes=True):
changes = ChangeSet(
f"Changing <{self.old_name}> occurrences to <{new_name}>"
)
changes = ChangeSet(f"Changing <{self.old_name}> occurrences to <{new_name}>")
scope_start, scope_end = self._get_scope_offset()
finder = occurrences.create_finder(
self.project,
Expand Down
4 changes: 1 addition & 3 deletions rope/refactor/restructure.py
Expand Up @@ -136,9 +136,7 @@ def get_changes(
stacklevel=2,
)
self.imports = imports
changes = change.ChangeSet(
f"Restructuring <{self.pattern}> to <{self.goal}>"
)
changes = change.ChangeSet(f"Restructuring <{self.pattern}> to <{self.goal}>")
if resources is not None:
files = [
resource
Expand Down

0 comments on commit b52bc9c

Please sign in to comment.