VarIndex: Use tuples instead of lists

This commit is contained in:
2021-02-02 09:10:49 -06:00
parent d1bbe48662
commit d3c5371fa5
2 changed files with 8 additions and 5 deletions

View File

@@ -2,11 +2,11 @@
# Copyright (C) 2020, UChicago Argonne, LLC. All rights reserved.
# Released under the modified BSD license. See COPYING.md for more details.
from typing import Optional, Dict, Callable, Any, Union, List
from typing import Optional, Dict, Callable, Any, Union, Tuple
from mypy_extensions import TypedDict
VarIndex = Union[str, int, List[Union[str, int]]]
VarIndex = Union[str, int, Tuple[Union[str, int]]]
Solution = Dict[str, Dict[VarIndex, Optional[float]]]