Skip to content

Commit

Permalink
Python 3.8 compat
Browse files Browse the repository at this point in the history
  • Loading branch information
tonioo committed Apr 3, 2024
1 parent 31e67f3 commit 180ad55
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sievelib/tools.py
Original file line number Diff line number Diff line change
@@ -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 [
Expand Down

0 comments on commit 180ad55

Please sign in to comment.