make autoflake more aggressive & fix some lint

This commit is contained in:
ducklet 2020-11-08 10:52:50 +01:00
parent 7c7a1fcde2
commit 76266d8d2f
5 changed files with 12 additions and 6 deletions

View file

@ -203,7 +203,6 @@ class Bot:
)
async def _run_timers(self) -> NoReturn:
client = self.client
await asyncio.sleep(2)
while True:
await asyncio.sleep(0.2)

View file

@ -8,7 +8,7 @@ from typing import *
import requests
from ..functions import localizedtz, react, reply
from ..functions import localizedtz, reply
from ..models import Job, Message
from ..tz import cest

View file

@ -1,6 +1,6 @@
from random import choice
from ..functions import react, reply
from ..functions import reply
from ..models import Message
HELP = """

View file

@ -148,7 +148,7 @@ async def extractor(info):
info.extracted.rating_count = ld["aggregateRating"]["ratingCount"]
async def handle(message, url, info):
async def handle(message: Message, url, info):
ex = clone(info.extracted)
image_title = f"Poster for {ex.title} ({ex.published:%Y})"
hosted_image = await import_image(