From bcd5def0c17e502d94e3521a1b57d35eb1c6dd22 Mon Sep 17 00:00:00 2001 From: "Adam J. Stewart" Date: Sun, 28 Apr 2024 00:16:47 +0200 Subject: [PATCH] Fix type hints --- tests/datasets/test_l7irish.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/datasets/test_l7irish.py b/tests/datasets/test_l7irish.py index d81dc44ac99..cf6871234cc 100644 --- a/tests/datasets/test_l7irish.py +++ b/tests/datasets/test_l7irish.py @@ -5,6 +5,7 @@ import os import shutil from pathlib import Path +from typing import cast import matplotlib.pyplot as plt import pytest @@ -65,8 +66,9 @@ def test_plot(self, dataset: L7Irish) -> None: plt.close() def test_already_extracted(self, dataset: L7Irish) -> None: - L7Irish(dataset.paths, download=True) - L7Irish([dataset.paths], download=True) + paths = cast(str, dataset.paths) + L7Irish(paths, download=True) + L7Irish([paths], download=True) def test_already_downloaded(self, tmp_path: Path) -> None: pathname = os.path.join("tests", "data", "l7irish", "*.tar.gz")