Skip to content

Commit 1a6cfa9

Browse files
pep8
Signed-off-by: thiswillbeyourgithub <[email protected]>
1 parent 4f10ce0 commit 1a6cfa9

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

wdoc/utils/loaders.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2246,7 +2246,9 @@ def load_word_document(
22462246
if isinstance(content, str):
22472247
docs = [Document(page_content=content)]
22482248
else:
2249-
assert isinstance(content, List) and all(isinstance(c, Document) for c in content), f"unexpected type of content: {str(content)[:1000]}"
2249+
assert isinstance(content, List) and all(
2250+
isinstance(c, Document) for c in content
2251+
), f"unexpected type of content: {str(content)[:1000]}"
22502252
docs = content
22512253
check_docs_tkn_length(docs, path)
22522254
except Exception as err:
@@ -2259,7 +2261,9 @@ def load_word_document(
22592261
if isinstance(content, str):
22602262
docs = [Document(page_content=content)]
22612263
else:
2262-
assert isinstance(content, List) and all(isinstance(c, Document) for c in content), f"unexpected type of content: {str(content)[:1000]}"
2264+
assert isinstance(content, List) and all(
2265+
isinstance(c, Document) for c in content
2266+
), f"unexpected type of content: {str(content)[:1000]}"
22632267
docs = content
22642268
check_docs_tkn_length(docs, path)
22652269

0 commit comments

Comments
 (0)