diff --git a/src/instawebhooks/__main__.py b/src/instawebhooks/__main__.py index 82fcaa8..177690f 100644 --- a/src/instawebhooks/__main__.py +++ b/src/instawebhooks/__main__.py @@ -7,10 +7,10 @@ import re import sys from argparse import ArgumentParser -from typing import Dict from datetime import datetime, timedelta from itertools import dropwhile, takewhile from time import sleep +from typing import Dict, List try: from aiohttp import ClientSession @@ -232,7 +232,7 @@ async def send_post(post: Post): if catchup > 0: logger.info("Sending last %s posts on startup...", catchup) - posts_to_send: list[Post] = [] + posts_to_send: List[Post] = [] for post in takewhile(lambda _: catchup > 0, posts): posts_to_send.append(post) catchup -= 1