Commit 3b88da65 authored by Christophe Benz's avatar Christophe Benz
Browse files

Fix type

parent 34e01505
Pipeline #339905 passed with stage
in 1 minute and 29 seconds
......@@ -4,7 +4,7 @@ from dataclasses import dataclass
from pathlib import Path
from typing import Iterator
from dbnomics_data_model.storage import Storage, StoragePool
from dbnomics_data_model.storage import StoragePool
from dbnomics_data_model.storage.errors import StoragePoolInitError
from .file_utils import iter_child_directories
......@@ -29,7 +29,7 @@ class FileSystemStoragePool(StoragePool):
storage_dir = self.get_provider_storage_dir(provider_code)
return FileSystemStorage(storage_dir=storage_dir)
def iter_storages(self) -> Iterator[Storage]:
def iter_storages(self) -> Iterator[FileSystemStorage]:
"""Iterate Storage instances found in this pool."""
for child_dir in iter_child_directories(self.storage_base_dir):
yield FileSystemStorage(storage_dir=child_dir)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment