From 241182937fa8e48f37969463aee9dce2c82ec588 Mon Sep 17 00:00:00 2001 From: Brian Pepple Date: Wed, 28 Oct 2020 16:36:55 -0400 Subject: [PATCH] Initialize list with empty brackets --- darkseid/filenameparser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/darkseid/filenameparser.py b/darkseid/filenameparser.py index b6935a1..191ae82 100644 --- a/darkseid/filenameparser.py +++ b/darkseid/filenameparser.py @@ -102,7 +102,7 @@ def get_issue_number(self, filename: str) -> Tuple[str, int, int]: # the same positions as original filename # make a list of each word and its position - word_list: List[Tuple[str, int, int]] = list() + word_list: List[Tuple[str, int, int]] = [] for match in re.finditer(r"\S+", filename): word_list.append((match.group(0), match.start(), match.end()))