From 799fb780918ceade5e75b16bfc461f3a2ec90e4f Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Sun, 25 Dec 2022 01:59:51 -0500 Subject: [PATCH] Use older style of type hint for Python 3.6 compat --- mailman_sync.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mailman_sync.py b/mailman_sync.py index 86f9332..4f7ab15 100755 --- a/mailman_sync.py +++ b/mailman_sync.py @@ -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( [