From a019a64e65e4d101c2e1e0eefb9b99ae9e176608 Mon Sep 17 00:00:00 2001 From: kainstan Date: Tue, 6 Jun 2023 08:26:54 +0800 Subject: [PATCH] PEP 8: E302 expected 2 blank lines, found 1 --- toolbox.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/toolbox.py b/toolbox.py index 18915d0..0beb424 100644 --- a/toolbox.py +++ b/toolbox.py @@ -20,6 +20,7 @@ from functools import wraps, lru_cache ======================================================================== """ + class ChatBotWithCookies(list): def __init__(self, cookie): self._cookies = cookie @@ -70,6 +71,7 @@ def update_ui(chatbot, history, msg='正常', **kwargs): # 刷新界面 assert isinstance(chatbot, ChatBotWithCookies), "在传递chatbot的过程中不要将其丢弃。必要时,可用clear将其清空,然后用for+append循环重新赋值。" yield chatbot.get_cookies(), chatbot, history, msg + def update_ui_lastest_msg(lastmsg, chatbot, history, delay=1): # 刷新界面 """ 刷新用户界面