From 64c42587d982c2f33500f6f3253232502f7c512f Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 3 Jul 2024 23:35:41 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- packages/jupyter-ai/jupyter_ai/chat_handlers/learn.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/jupyter-ai/jupyter_ai/chat_handlers/learn.py b/packages/jupyter-ai/jupyter_ai/chat_handlers/learn.py index 27a595d62..89770f0d2 100644 --- a/packages/jupyter-ai/jupyter_ai/chat_handlers/learn.py +++ b/packages/jupyter-ai/jupyter_ai/chat_handlers/learn.py @@ -267,7 +267,9 @@ async def relearn(self, metadata: IndexMetadata): for dir in metadata.dirs: # TODO: do not relearn directories in serial, but instead # concurrently or in parallel - await self.learn_dir(dir.path, dir.chunk_size, dir.chunk_overlap, all_files=False) + await self.learn_dir( + dir.path, dir.chunk_size, dir.chunk_overlap, all_files=False + ) self.save()