Skip to content

Commit

Permalink
Python 3.8 compatibility
Browse files Browse the repository at this point in the history
Signed-off-by: Matthias Kümmerer <[email protected]>
  • Loading branch information
matthias-k committed Mar 27, 2024
1 parent 3dbe8dc commit c451191
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pysaliency/utils/variable_length_array.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import Optional, Union
from typing import Optional, Union, List

import numpy as np

Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit c451191

Please sign in to comment.