From 82676dbfce978c7230e280a441c442b9e1b20b25 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 5 Sep 2023 10:14:53 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- traitlets/config/application.py | 4 +--- traitlets/traitlets.py | 6 ++---- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/traitlets/config/application.py b/traitlets/config/application.py index 22cec644..af8fe536 100644 --- a/traitlets/config/application.py +++ b/traitlets/config/application.py @@ -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.""" diff --git a/traitlets/traitlets.py b/traitlets/traitlets.py index b8e27cd6..e5376738 100644 --- a/traitlets/traitlets.py +++ b/traitlets/traitlets.py @@ -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): @@ -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):