From 9e785563ff0d8e8d8b0e1a7b4c6eeee0ab7481e6 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 23 Oct 2024 08:29:34 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- jupyter_server/services/contents/handlers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jupyter_server/services/contents/handlers.py b/jupyter_server/services/contents/handlers.py index 98ab57669..c915ea93b 100644 --- a/jupyter_server/services/contents/handlers.py +++ b/jupyter_server/services/contents/handlers.py @@ -251,8 +251,8 @@ async def _append(self, to_append_model, path): self.log.info(f"Appending file chunk {chunk} at path: {path}") existing_model = self.contents_manager.get(path) # TODO: Test binary files encoding works properly: - assert existing_model['format'] == to_append_model['format'] - existing_model['content'] = existing_model['content'] + to_append_model['content'] + assert existing_model["format"] == to_append_model["format"] + existing_model["content"] = existing_model["content"] + to_append_model["content"] model = await ensure_async(self.contents_manager.save(existing_model, path)) validate_model(model) self._finish_model(model)