Skip to content

Commit 1000e46

Browse files
committed
fix linter
1 parent d992537 commit 1000e46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/cat/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ def langchain_log_prompt(langchain_prompt, title):
296296
print(get_colored_text(f"===== {title} =====", "green"))
297297
for m in langchain_prompt.messages:
298298
print(get_colored_text(type(m).__name__, "green"))
299-
if type(m.content) == list:
299+
if isinstance(m.content, list):
300300
for sub_m in m.content:
301301
if sub_m.get("type") == "text":
302302
print(sub_m["text"])

0 commit comments

Comments
 (0)