Skip to content

Commit

Permalink
Bugfix: make type annotations compatible with older python versions (#72
Browse files Browse the repository at this point in the history
)

Signed-off-by: Matthias Kümmerer <[email protected]>
  • Loading branch information
matthias-k authored Jun 20, 2024
1 parent 74f4ee3 commit 961bd96
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ requires = [
"setuptools",
"wheel",
"Cython"
]
]
build-backend = "setuptools.build_meta"
3 changes: 2 additions & 1 deletion pysaliency/external_datasets/dut_omrom.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import glob
import os
import zipfile
from typing import Tuple

import numpy as np
from scipy.io import loadmat
Expand All @@ -17,7 +18,7 @@
from .utils import _load, create_stimuli


def get_DUT_OMRON(location=None) -> tuple[Stimuli, ScanpathFixations]:
def get_DUT_OMRON(location=None) -> Tuple[Stimuli, ScanpathFixations]:
"""
Loads or downloads the DUT-OMRON fixation dataset.
The dataset consists of 5168 natural images with
Expand Down

0 comments on commit 961bd96

Please sign in to comment.