Unverified Commit 0bf71989 authored by Titus's avatar Titus Committed by GitHub
Browse files

tests/helpers.py: fix py38 vers incompatibility from other PR

parent a84b660d
from itertools import product from itertools import product
import random import random
from typing import Any from typing import Any, List
import torch import torch
test_dims_rng = random.Random(42) test_dims_rng = random.Random(42)
def get_test_dims(min: int, max: int, *, n: int) -> list[int]: def get_test_dims(min: int, max: int, *, n: int) -> List[int]:
return [test_dims_rng.randint(min, max) for _ in range(n)] return [test_dims_rng.randint(min, max) for _ in range(n)]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment