Skip to content

Commit 667750b

Browse files
committed
fix(Table): fix syntax
PEP 585 was implemented in 3.9.
1 parent b260a99 commit 667750b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

wikitextparser/_table.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ def caption_attrs(self, attrs: str) -> None:
314314
self[m.end('preattrs'):end] = attrs
315315

316316
@property
317-
def row_attrs(self) -> list[dict]:
317+
def row_attrs(self) -> List[dict]:
318318
"""Row attributes.
319319
320320
Use the setter of this property to set attributes for all rows.
@@ -335,7 +335,7 @@ def row_attrs(self) -> list[dict]:
335335
return attrs
336336

337337
@row_attrs.setter
338-
def row_attrs(self, attrs: list[dict]):
338+
def row_attrs(self, attrs: List[dict]):
339339
for row_match, attrs_dict in reversed(
340340
[*zip(FIND_ROWS(self._table_shadow), attrs)]
341341
):

0 commit comments

Comments
 (0)