🐛 移除高版本写法

This commit is contained in:
Wuyi无疑 2023-11-22 09:38:11 +08:00 committed by GitHub
parent 0c5ce62e6e
commit 13b240090e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,7 +29,7 @@ async def get_event_avatar(ev: Event) -> Image.Image:
async def get_avatar_with_ring( async def get_avatar_with_ring(
ev: Event, ev: Event,
size: int = 300, size: int = 300,
bg_color: Tuple[int, int, int] | None = None, bg_color: Union[Tuple[int, int, int], None] = None,
is_ring: bool = True, is_ring: bool = True,
) -> Image.Image: ) -> Image.Image:
avatar = await get_event_avatar(ev) avatar = await get_event_avatar(ev)