From 180ad55627ac3d8e9d6bfe6ef1703131d87fb7c5 Mon Sep 17 00:00:00 2001 From: Antoine Nguyen Date: Wed, 3 Apr 2024 17:26:19 +0200 Subject: [PATCH] Python 3.8 compat --- sievelib/tools.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sievelib/tools.py b/sievelib/tools.py index 250289d..a139c39 100644 --- a/sievelib/tools.py +++ b/sievelib/tools.py @@ -1,7 +1,9 @@ """Some tools.""" +from typing import List -def to_list(stringlist: str, unquote: bool = True) -> list[str]: + +def to_list(stringlist: str, unquote: bool = True) -> List[str]: """Convert a string representing a list to real list.""" stringlist = stringlist[1:-1] return [