From 189bcc389498af9b10b0813b7f7879da105b066c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Rapin?= Date: Wed, 18 Sep 2024 18:03:14 +0200 Subject: [PATCH] Fix black (#1774) --- submitit/core/utils.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/submitit/core/utils.py b/submitit/core/utils.py index d8ea7a0..45c5970 100644 --- a/submitit/core/utils.py +++ b/submitit/core/utils.py @@ -93,7 +93,9 @@ def _format_id(self, path: tp.Union[Path, str]) -> Path: replaced_path = replaced_path.replace("%a", array_index[0]) return Path(replaced_path.replace("%A", array_id)) - def move_temporary_file(self, tmp_path: tp.Union[Path, str], name: str, keep_as_symlink: bool = False) -> None: + def move_temporary_file( + self, tmp_path: tp.Union[Path, str], name: str, keep_as_symlink: bool = False + ) -> None: self.folder.mkdir(parents=True, exist_ok=True) Path(tmp_path).rename(getattr(self, name)) if keep_as_symlink: