Skip to content

Commit 0463bb3

Browse files
Remove py38-incompatible type annotations.
1 parent 9b02296 commit 0463bb3

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ pip-log.txt
5555
coverage.xml
5656
htmlcov
5757
nosetests.xml
58+
--cov-report=term-missing
5859

5960
# Translations
6061
*.mo

src/geophires_x_schema_generator/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,14 +210,14 @@ def get_key(k):
210210
return output_rst
211211

212212

213-
def _get_key(param: dict[str, Any], k: str, default_val='') -> Any:
213+
def _get_key(param: dict, k: str, default_val='') -> Any:
214214
if k in param and str(param[k]) != '':
215215
return param[k]
216216
else:
217217
return default_val
218218

219219

220-
def _get_min_and_max(param: dict[str, Any], default_val='') -> Tuple[float, float]:
220+
def _get_min_and_max(param: dict, default_val='') -> Tuple:
221221
min_val = _get_key(param, 'Min', default_val=default_val)
222222
max_val = _get_key(param, 'Max', default_val=default_val)
223223

0 commit comments

Comments
 (0)