Skip to content

Commit

Permalink
Fix type hints
Browse files Browse the repository at this point in the history
  • Loading branch information
adamjstewart committed May 3, 2024
1 parent 0583733 commit f9cbd0d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/datasets/test_l7irish.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import os
import shutil
from pathlib import Path
from typing import cast

import matplotlib.pyplot as plt
import pytest
Expand Down Expand Up @@ -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")
Expand Down

0 comments on commit f9cbd0d

Please sign in to comment.