diff --git a/torchgeo/datasets/geo.py b/torchgeo/datasets/geo.py index 7a79923d95b..09564dbaba1 100644 --- a/torchgeo/datasets/geo.py +++ b/torchgeo/datasets/geo.py @@ -434,7 +434,7 @@ def files(self) -> set[str]: """ # Make iterable if isinstance(self.paths, str): - paths = [self.paths] + paths: Iterable[str] = [self.paths] else: paths = self.paths