From 62c583b2fbd54c50402502ffd1216ee1867b343d Mon Sep 17 00:00:00 2001 From: 5j9 <5j9@users.noreply.github.com> Date: Thu, 11 Apr 2024 23:40:55 +0330 Subject: [PATCH] fix: TypeError: 'type' object is not subscriptable --- wikitextparser/_wikitext.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wikitextparser/_wikitext.py b/wikitextparser/_wikitext.py index 2a2ef47..d1ee71a 100644 --- a/wikitextparser/_wikitext.py +++ b/wikitextparser/_wikitext.py @@ -182,7 +182,7 @@ def _table_to_text(t: 'Table') -> str: ) -_MarkupSpans = List[tuple[int, int]] +_MarkupSpans = List[Tuple[int, int]] class WikiText: @@ -989,7 +989,7 @@ def comments(self) -> List['Comment']: @property def _bold_italic_marks( self, - ) -> tuple[bytearray, _MarkupSpans, _MarkupSpans]: + ) -> Tuple[bytearray, _MarkupSpans, _MarkupSpans]: """Return (shadow, bold markup spans, italic markup spans). The comments at /includes/parser/Parser.php:doQuotes are helpful: