From 13b240090e4a7ad602672266f85afbdfc7ea0183 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wuyi=E6=97=A0=E7=96=91?= <444835641@qq.com> Date: Wed, 22 Nov 2023 09:38:11 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20=E7=A7=BB=E9=99=A4=E9=AB=98?= =?UTF-8?q?=E7=89=88=E6=9C=AC=E5=86=99=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gsuid_core/utils/image/image_tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gsuid_core/utils/image/image_tools.py b/gsuid_core/utils/image/image_tools.py index 1f56577..79b8192 100644 --- a/gsuid_core/utils/image/image_tools.py +++ b/gsuid_core/utils/image/image_tools.py @@ -29,7 +29,7 @@ async def get_event_avatar(ev: Event) -> Image.Image: async def get_avatar_with_ring( ev: Event, size: int = 300, - bg_color: Tuple[int, int, int] | None = None, + bg_color: Union[Tuple[int, int, int], None] = None, is_ring: bool = True, ) -> Image.Image: avatar = await get_event_avatar(ev)