From c3b153f8c63996c85f20558b3e64c7f53fedfa6a Mon Sep 17 00:00:00 2001 From: Windpicker-owo <3431391539@qq.com> Date: Tue, 23 Sep 2025 22:52:32 +0800 Subject: [PATCH] =?UTF-8?q?refactor(notification=5Fsender):=20=E7=A7=BB?= =?UTF-8?q?=E9=99=A4=E5=AF=B9=20HfcContext=20=E7=9A=84=E4=BE=9D=E8=B5=96?= =?UTF-8?q?=E5=B9=B6=E7=AE=80=E5=8C=96=E6=96=B9=E6=B3=95=E7=AD=BE=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../message_manager/sleep_manager/notification_sender.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/chat/message_manager/sleep_manager/notification_sender.py b/src/chat/message_manager/sleep_manager/notification_sender.py index a22aa9b4e..07e8b09d4 100644 --- a/src/chat/message_manager/sleep_manager/notification_sender.py +++ b/src/chat/message_manager/sleep_manager/notification_sender.py @@ -1,12 +1,13 @@ from src.common.logger import get_logger -from ..hfc_context import HfcContext + +#from ..hfc_context import HfcContext logger = get_logger("notification_sender") class NotificationSender: @staticmethod - async def send_goodnight_notification(context: HfcContext): + async def send_goodnight_notification(context): # type: ignore """发送晚安通知""" #try: #from ..proactive.events import ProactiveTriggerEvent @@ -19,7 +20,7 @@ class NotificationSender: #logger.error(f"发送晚安通知失败: {e}") @staticmethod - async def send_insomnia_notification(context: HfcContext, reason: str): + async def send_insomnia_notification(context, reason: str): # type: ignore """发送失眠通知""" #try: #from ..proactive.events import ProactiveTriggerEvent