We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d875044 commit 6613d49Copy full SHA for 6613d49
src/instawebhooks/__main__.py
@@ -7,10 +7,10 @@
7
import re
8
import sys
9
from argparse import ArgumentParser
10
-from typing import Dict
11
from datetime import datetime, timedelta
12
from itertools import dropwhile, takewhile
13
from time import sleep
+from typing import Dict, List
14
15
try:
16
from aiohttp import ClientSession
@@ -232,7 +232,7 @@ async def send_post(post: Post):
232
233
if catchup > 0:
234
logger.info("Sending last %s posts on startup...", catchup)
235
- posts_to_send: list[Post] = []
+ posts_to_send: List[Post] = []
236
for post in takewhile(lambda _: catchup > 0, posts):
237
posts_to_send.append(post)
238
catchup -= 1
0 commit comments