Use typing.Tuple to support 3.8.
This commit is contained in:
parent
b0bce3d9b1
commit
f15f949bfb
|
|
@ -1,5 +1,5 @@
|
|||
from pathlib import Path
|
||||
from typing import Iterator, Optional, Union
|
||||
from typing import Iterator, Optional, Tuple, Union
|
||||
|
||||
from lxml import etree
|
||||
|
||||
|
|
@ -60,7 +60,7 @@ def is_float(cell: etree._Element) -> bool:
|
|||
def get_value(
|
||||
cell: etree._Element,
|
||||
parsed: bool = False,
|
||||
) -> tuple[Optional[Union[str, float]], int]:
|
||||
) -> Tuple[Optional[Union[str, float]], int]:
|
||||
text = cell.find(TABLE_CELL_TEXT_TAG, namespaces=cell.nsmap)
|
||||
if text is None:
|
||||
return None, 0
|
||||
|
|
|
|||
Loading…
Reference in New Issue