From 51950b90f1c7e184eb0bef509f12c27348dc6fe2 Mon Sep 17 00:00:00 2001 From: 5j9 <5j9@users.noreply.github.com> Date: Sun, 5 Nov 2023 07:51:31 +0330 Subject: [PATCH] fix: TypeError: 'type' object is not subscriptable support was added in 3.9. --- wikitextparser/_wikitext.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wikitextparser/_wikitext.py b/wikitextparser/_wikitext.py index 977138c..048b880 100644 --- a/wikitextparser/_wikitext.py +++ b/wikitextparser/_wikitext.py @@ -1248,7 +1248,7 @@ def _extract(start, end): return external_links def _section_spans_to_sections( - self, section_spans: list[tuple[int, int]], shadow: bytearray, / + self, section_spans: List[Tuple[int, int]], shadow: bytearray, / ) -> List['Section']: type_to_spans = self._type_to_spans sections: List[Section] = []