From c21b24b385326627514ca88ee217ff73a3b55363 Mon Sep 17 00:00:00 2001 From: felinae98 <731499577@qq.com> Date: Mon, 27 May 2024 21:58:01 +0800 Subject: [PATCH] :rotating_light: fix lint err --- nonebot_bison/platform/platform.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/nonebot_bison/platform/platform.py b/nonebot_bison/platform/platform.py index 1e64819..2bf02f3 100644 --- a/nonebot_bison/platform/platform.py +++ b/nonebot_bison/platform/platform.py @@ -414,13 +414,13 @@ class SimplePost(NewMessage, abstract=True): async def _handle_new_post( self, - new_posts: list[RawPost], + post_list: list[RawPost], sub_unit: SubUnit, ) -> list[tuple[PlatformTarget, list[Post]]]: - if not new_posts: + if not post_list: return [] else: - for post in new_posts: + for post in post_list: logger.info( "fetch new post from {} {}: {}".format( self.platform_name, @@ -428,7 +428,7 @@ class SimplePost(NewMessage, abstract=True): self.get_id(post), ) ) - res = await self.dispatch_user_post(new_posts, sub_unit) + res = await self.dispatch_user_post(post_list, sub_unit) self.parse_cache = {} return res