Skip to content

Commit 496f224

Browse files
committed
type hinting fix for backwards compatibility
1 parent f4709d7 commit 496f224

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

constrainedrandom/internal/multivar.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
import constraint
55
from collections import defaultdict
6-
from typing import Any, Dict, Iterable, Optional, TYPE_CHECKING, Union
6+
from typing import Any, Dict, Iterable, List, Optional, TYPE_CHECKING, Union
77

88
from constrainedrandom import utils
99

@@ -46,7 +46,7 @@ def __init__(
4646
self.max_iterations = max_iterations
4747
self.max_domain_size = max_domain_size
4848

49-
def determine_order(self) -> list[list['RandVar']]:
49+
def determine_order(self) -> List[List['RandVar']]:
5050
'''
5151
Chooses an order in which to resolve the values of the variables.
5252
Used internally.
@@ -84,7 +84,7 @@ def determine_order(self) -> list[list['RandVar']]:
8484

8585
def solve_groups(
8686
self,
87-
groups: list[list['RandVar']],
87+
groups: List[List['RandVar']],
8888
max_iterations:int,
8989
solutions_per_group: Optional[int]=None,
9090
) -> Union[Dict[str, Any], None]:

0 commit comments

Comments
 (0)