Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Sep 5, 2023
1 parent fa2214a commit 82676db
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
4 changes: 1 addition & 3 deletions traitlets/config/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -503,9 +503,7 @@ def start_show_config(self):

for traitname in sorted(class_config):
value = class_config[traitname]
print(
f" .{traitname} = {pprint.pformat(value, **pformat_kwargs)}"
)
print(f" .{traitname} = {pprint.pformat(value, **pformat_kwargs)}")

def print_alias_help(self):
"""Print the alias parts of the help."""
Expand Down
6 changes: 2 additions & 4 deletions traitlets/traitlets.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,8 +322,7 @@ def _update_target(self, change):
setattr(self.target[0], self.target[1], self._transform(change.new))
if getattr(self.source[0], self.source[1]) != change.new:
raise TraitError(
f"Broken link {self}: the source value changed while updating "
"the target."
f"Broken link {self}: the source value changed while updating " "the target."
)

def _update_source(self, change):
Expand All @@ -333,8 +332,7 @@ def _update_source(self, change):
setattr(self.source[0], self.source[1], self._transform_inv(change.new))
if getattr(self.target[0], self.target[1]) != change.new:
raise TraitError(
f"Broken link {self}: the target value changed while updating "
"the source."
f"Broken link {self}: the target value changed while updating " "the source."
)

def unlink(self):
Expand Down

0 comments on commit 82676db

Please sign in to comment.