From c4511916d0fbcf167cc5b65a4518e8f851d0850d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20K=C3=BCmmerer?= Date: Thu, 28 Mar 2024 00:22:34 +0100 Subject: [PATCH] Python 3.8 compatibility MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Matthias Kümmerer --- pysaliency/utils/variable_length_array.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pysaliency/utils/variable_length_array.py b/pysaliency/utils/variable_length_array.py index 1e01fa2..98b98d7 100644 --- a/pysaliency/utils/variable_length_array.py +++ b/pysaliency/utils/variable_length_array.py @@ -1,4 +1,4 @@ -from typing import Optional, Union +from typing import Optional, Union, List import numpy as np @@ -28,8 +28,8 @@ class VariableLengthArray: __getitem__(index): Returns the value(s) at the specified index(es) in the array. """ - def __init__(self, data: Union[np.ndarray, list[list]], lengths: Optional[np.ndarray] = None): - """ + def __init__(self, data: Union[np.ndarray, List[list]], lengths: Optional[np.ndarray] = None): + """List Initialize the VariableLengthArray object. Args: