Changeset View
Changeset View
Standalone View
Standalone View
swh/provenance/__init__.py
Show First 20 Lines • Show All 113 Lines • ▼ Show 20 Lines | elif cls == "rabbitmq": | ||||
from .api.client import ProvenanceStorageRabbitMQClient | from .api.client import ProvenanceStorageRabbitMQClient | ||||
rmq_storage = ProvenanceStorageRabbitMQClient(**kwargs) | rmq_storage = ProvenanceStorageRabbitMQClient(**kwargs) | ||||
if TYPE_CHECKING: | if TYPE_CHECKING: | ||||
assert isinstance(rmq_storage, ProvenanceStorageInterface) | assert isinstance(rmq_storage, ProvenanceStorageInterface) | ||||
return rmq_storage | return rmq_storage | ||||
raise ValueError | raise ValueError | ||||
get_datastore = get_provenance_storage |