From e0b2851ba12a623a3a8bbcbb99ddfbaf1e0157ed Mon Sep 17 00:00:00 2001 From: IroNEDR Date: Thu, 15 Aug 2024 23:59:38 +0200 Subject: [PATCH] I-51 tuple changed to Tuple for compatibility with Python <3.9 --- tests/test_loop.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_loop.py b/tests/test_loop.py index b7a880b..bedab1c 100644 --- a/tests/test_loop.py +++ b/tests/test_loop.py @@ -4,6 +4,7 @@ from PyNomaly import loop import logging +from typing import Tuple import numpy as np from numpy.testing import assert_array_equal import pandas as pd @@ -52,7 +53,7 @@ def X_n8() -> np.ndarray: @pytest.fixture() -def X_n20_scores() -> tuple[np.ndarray, np.ndarray]: +def X_n20_scores() -> Tuple[np.ndarray, np.ndarray]: """ Fixture that returns a tuple containing a 20 element numpy array and the precalculated loOP scores based on that array.