Skip to content

Commit a84014f

Browse files
committed
fix: ci code
1 parent b24926f commit a84014f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/memos/reranker/concat.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
from typing import Any
21
import re
32

3+
from typing import Any
4+
5+
46
_TAG1 = re.compile(r"^\s*\[[^\]]*\]\s*")
57

68

@@ -42,7 +44,7 @@ def concat_original_source(
4244
merge_field = ["sources"]
4345
documents = []
4446
for item in graph_results:
45-
memory = (_TAG1.sub("", m) if isinstance((m := getattr(item, "memory", None)), str) else m)
47+
memory = _TAG1.sub("", m) if isinstance((m := getattr(item, "memory", None)), str) else m
4648
sources = []
4749
for field in merge_field:
4850
source = getattr(item.metadata, field, "")

0 commit comments

Comments
 (0)