Skip to content

Commit

Permalink
Import type
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanLua authored Dec 3, 2024
1 parent d875044 commit 6613d49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/instawebhooks/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 6613d49

Please sign in to comment.