From 0bf71989566c63f4b301e5bdbf2cd73b5683a8e9 Mon Sep 17 00:00:00 2001 From: Titus <9048635+Titus-von-Koeller@users.noreply.github.com> Date: Wed, 21 Feb 2024 15:51:40 +0100 Subject: [PATCH] tests/helpers.py: fix py38 vers incompatibility from other PR --- tests/helpers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/helpers.py b/tests/helpers.py index 46c6ef93d..f82a8631f 100644 --- a/tests/helpers.py +++ b/tests/helpers.py @@ -1,13 +1,13 @@ from itertools import product import random -from typing import Any +from typing import Any, List import torch 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)]