From f15f949bfb5e30d4bc7abf204fa7c4a8e2c34976 Mon Sep 17 00:00:00 2001 From: ljnsn <82611987+ljnsn@users.noreply.github.com> Date: Wed, 21 Dec 2022 21:20:20 +0100 Subject: [PATCH] Use typing.Tuple to support 3.8. --- pandas_ods_reader/parsers/fods.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandas_ods_reader/parsers/fods.py b/pandas_ods_reader/parsers/fods.py index da44d6b..4f4a3f6 100644 --- a/pandas_ods_reader/parsers/fods.py +++ b/pandas_ods_reader/parsers/fods.py @@ -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