Skip to content

Commit 4efc145

Browse files
committed
add typealias
1 parent d7d10e0 commit 4efc145

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

xcube/core/store/store.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
from abc import ABC, abstractmethod
66
from collections.abc import Container, Iterator
7-
from typing import Any, Optional, Union
7+
from typing import Any, Optional, Union, TypeAlias
88

99
from xcube.constants import EXTENSION_POINT_DATA_STORES
1010
from xcube.util.extension import Extension, ExtensionPredicate, ExtensionRegistry
@@ -691,7 +691,7 @@ def deregister_data(self, data_id: str):
691691
"""
692692

693693

694-
class PreloadedDataStore(DataStore):
694+
class Preloaded(DataStore):
695695
"""A preload data store is a multable data store which contains the preload handle.
696696
This class solely acts as a protocol description or marker interface for `DataStore`
697697
instances returned from another data store's `preload_data` method.
@@ -715,3 +715,6 @@ def preload_handle(self) -> PreloadHandle:
715715
Implementors of this interface may use a `ExecutorPreloadHandle` or consider
716716
returning a `NullPreloadHandle` if the progress is not observable.
717717
"""
718+
719+
720+
PreloadedDataStore: TypeAlias = DataStore | Preloaded

0 commit comments

Comments
 (0)