From bffb9dbdb0d8d710c3e25ea38baa4744b43fa69c Mon Sep 17 00:00:00 2001 From: yangdx Date: Thu, 17 Apr 2025 23:00:34 +0800 Subject: [PATCH] Fix linting --- lightrag/utils.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lightrag/utils.py b/lightrag/utils.py index 913c39f3..dc717fb7 100644 --- a/lightrag/utils.py +++ b/lightrag/utils.py @@ -1385,11 +1385,7 @@ def normalize_extracted_info(name: str, is_entity=False) -> str: name = re.sub(r"(?<=[a-zA-Z0-9])\s+(?=[\u4e00-\u9fa5])", "", name) # Remove English quotation marks from the beginning and end - if ( - len(name) >= 2 - and name.startswith('"') - and name.endswith('"') - ): + if len(name) >= 2 and name.startswith('"') and name.endswith('"'): name = name[1:-1] if is_entity: