Skip to content

Commit 6613d49

Browse files
authored
Import type
1 parent d875044 commit 6613d49

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/instawebhooks/__main__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
import re
88
import sys
99
from argparse import ArgumentParser
10-
from typing import Dict
1110
from datetime import datetime, timedelta
1211
from itertools import dropwhile, takewhile
1312
from time import sleep
13+
from typing import Dict, List
1414

1515
try:
1616
from aiohttp import ClientSession
@@ -232,7 +232,7 @@ async def send_post(post: Post):
232232

233233
if catchup > 0:
234234
logger.info("Sending last %s posts on startup...", catchup)
235-
posts_to_send: list[Post] = []
235+
posts_to_send: List[Post] = []
236236
for post in takewhile(lambda _: catchup > 0, posts):
237237
posts_to_send.append(post)
238238
catchup -= 1

0 commit comments

Comments
 (0)