We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a9b0fc9 commit d2259b9Copy full SHA for d2259b9
tests/test_utils.py
@@ -33,7 +33,7 @@
33
from itertools import product
34
from pathlib import Path
35
from subprocess import PIPE, Popen
36
-from typing import Callable
+from typing import Any, Callable, Iterable
37
from urllib.error import ContentTooShortError, HTTPError
38
39
import numpy as np
@@ -864,7 +864,7 @@ def equal_state_dict(st_1, st_2):
864
TEST_DEVICES.append([torch.device("cuda")])
865
866
867
-def dict_product(**items: dict[str, list]) -> list[dict]:
+def dict_product(**items: Iterable[Any]) -> list[dict]:
868
"""Create cartesian product, equivalent to a nested for-loop, combinations of the items dict.
869
870
Args:
0 commit comments