From d8cf51b232445cd73fcfa3e8d7c38a257a22befd Mon Sep 17 00:00:00 2001 From: Raiden Sakura Date: Fri, 18 Aug 2023 21:15:55 +0800 Subject: [PATCH] Lint --- core/migrations.py | 2 +- core/thread.py | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/core/migrations.py b/core/migrations.py index c51521abab..9ffe467197 100644 --- a/core/migrations.py +++ b/core/migrations.py @@ -1,6 +1,6 @@ import datetime import re -from typing import Optional, List +from typing import List, Optional from core import blocklist from core.models import getLogger diff --git a/core/thread.py b/core/thread.py index 60a23c8c31..9ca5180fb6 100644 --- a/core/thread.py +++ b/core/thread.py @@ -1,11 +1,7 @@ import asyncio -import base64 import copy -import functools -import io import re import time -import traceback import typing import warnings from datetime import timedelta @@ -1022,7 +1018,9 @@ async def send( images.extend(image_urls) images.extend( ( - i.url if i.format in (discord.StickerFormatType.png, discord.StickerFormatType.apng) else None, + i.url + if i.format in (discord.StickerFormatType.png, discord.StickerFormatType.apng) + else None, i.name, True, )