Skip to content

Commit

Permalink
fix: TypeError: 'type' object is not subscriptable
Browse files Browse the repository at this point in the history
support was added in 3.9.
  • Loading branch information
5j9 committed Nov 5, 2023
1 parent 7432c20 commit 51950b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wikitextparser/_wikitext.py
Original file line number Diff line number Diff line change
Expand Up @@ -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] = []
Expand Down

0 comments on commit 51950b9

Please sign in to comment.