Use older style of type hint for Python 3.6 compat

This commit is contained in:
Adam Goldsmith 2022-12-25 01:59:51 -05:00
parent e9b94a2adb
commit 799fb78091

View File

@ -1,5 +1,7 @@
#!/usr/bin/env python3
from typing import List
"""
Update Mailman 2 lists via a json API of the form {"LIST": ["ADDRESS", ...]}
"""
@ -11,7 +13,7 @@ import subprocess
import requests
def sync_members(mailman_bin: Path, mailing_list: str, members: list[str]):
def sync_members(mailman_bin: Path, mailing_list: str, members: List[str]):
members_file = "\n".join(members)
output = subprocess.run(
[