Skip to content

Commit f8b6250

Browse files
committed
replace type hinting with Union for compatibility with python < 3.10
1 parent c5efbe0 commit f8b6250

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

testbed/src/testbed/__main__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
from typing import Type
1515
import sys
1616
from typing import Tuple
17+
from typing import Union
1718

1819
import namesgenerator
1920
import numpy as np
@@ -49,7 +50,7 @@
4950

5051
def get_model(
5152
model_name: Optional[str] = None, return_available_models: bool = False
52-
) -> List[str] | Type[ProbabilisticModel]:
53+
) -> Union[List[str], Type[ProbabilisticModel]]:
5354
# noinspection PyListCreation
5455
available_models = []
5556

0 commit comments

Comments
 (0)