From 3c9908b94ae621aa511ebd94e3cbf822abf05b7a Mon Sep 17 00:00:00 2001 From: Yannick Stephan Date: Wed, 26 Feb 2025 12:11:28 +0100 Subject: [PATCH] fixed lint --- lightrag/lightrag.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/lightrag/lightrag.py b/lightrag/lightrag.py index 09bedf94..cfe422e0 100644 --- a/lightrag/lightrag.py +++ b/lightrag/lightrag.py @@ -539,9 +539,16 @@ class LightRAG: split_by_character, split_by_character_only ) - def insert_custom_chunks(self, full_text: str, text_chunks: list[str], doc_id: str | list[str] | None = None) -> None: + def insert_custom_chunks( + self, + full_text: str, + text_chunks: list[str], + doc_id: str | list[str] | None = None, + ) -> None: loop = always_get_an_event_loop() - loop.run_until_complete(self.ainsert_custom_chunks(full_text, text_chunks, doc_id)) + loop.run_until_complete( + self.ainsert_custom_chunks(full_text, text_chunks, doc_id) + ) async def ainsert_custom_chunks( self, full_text: str, text_chunks: list[str], doc_id: str | None = None