From ada4b16e8c90cc05427efa5afce7a5198a36ff3b Mon Sep 17 00:00:00 2001 From: Devon Fulcher <24593113+DevonFulcher@users.noreply.github.com> Date: Thu, 24 Oct 2024 14:07:22 -0500 Subject: [PATCH] Rename to PydanticSemanticLayerElementConfig --- dbt_semantic_interfaces/implementations/element_config.py | 6 +++--- dbt_semantic_interfaces/protocols/dimension.py | 4 ++-- dbt_semantic_interfaces/protocols/entity.py | 4 ++-- dbt_semantic_interfaces/protocols/measure.py | 4 ++-- dbt_semantic_interfaces/protocols/meta.py | 2 +- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/dbt_semantic_interfaces/implementations/element_config.py b/dbt_semantic_interfaces/implementations/element_config.py index e99237ca..0da5e278 100644 --- a/dbt_semantic_interfaces/implementations/element_config.py +++ b/dbt_semantic_interfaces/implementations/element_config.py @@ -4,15 +4,15 @@ from typing_extensions import override from dbt_semantic_interfaces.implementations.base import HashableBaseModel -from dbt_semantic_interfaces.protocols.meta import ConfigMeta +from dbt_semantic_interfaces.protocols.meta import PydanticSemanticLayerElementConfig from dbt_semantic_interfaces.protocols.protocol_hint import ProtocolHint -class SemanticLayerElementConfig(HashableBaseModel, ProtocolHint[ConfigMeta]): +class SemanticLayerElementConfig(HashableBaseModel, ProtocolHint[PydanticSemanticLayerElementConfig]): """PydanticDimension config.""" @override - def _implements_protocol(self) -> ConfigMeta: # noqa: D + def _implements_protocol(self) -> PydanticSemanticLayerElementConfig: # noqa: D return self meta: Dict[str, Any] = Field(default_factory=dict) diff --git a/dbt_semantic_interfaces/protocols/dimension.py b/dbt_semantic_interfaces/protocols/dimension.py index 474a1753..bcebac4e 100644 --- a/dbt_semantic_interfaces/protocols/dimension.py +++ b/dbt_semantic_interfaces/protocols/dimension.py @@ -3,7 +3,7 @@ from abc import abstractmethod from typing import Optional, Protocol -from dbt_semantic_interfaces.protocols.meta import ConfigMeta +from dbt_semantic_interfaces.protocols.meta import PydanticSemanticLayerElementConfig from dbt_semantic_interfaces.protocols.metadata import Metadata from dbt_semantic_interfaces.references import ( DimensionReference, @@ -111,5 +111,5 @@ def label(self) -> Optional[str]: @property @abstractmethod - def config(self) -> Optional[ConfigMeta]: # noqa: D + def config(self) -> Optional[PydanticSemanticLayerElementConfig]: # noqa: D pass diff --git a/dbt_semantic_interfaces/protocols/entity.py b/dbt_semantic_interfaces/protocols/entity.py index c614ac9d..ff0b1703 100644 --- a/dbt_semantic_interfaces/protocols/entity.py +++ b/dbt_semantic_interfaces/protocols/entity.py @@ -3,7 +3,7 @@ from abc import abstractmethod from typing import Optional, Protocol -from dbt_semantic_interfaces.protocols.meta import ConfigMeta +from dbt_semantic_interfaces.protocols.meta import PydanticSemanticLayerElementConfig from dbt_semantic_interfaces.references import EntityReference from dbt_semantic_interfaces.type_enums import EntityType @@ -64,5 +64,5 @@ def label(self) -> Optional[str]: @property @abstractmethod - def config(self) -> Optional[ConfigMeta]: # noqa: D + def config(self) -> Optional[PydanticSemanticLayerElementConfig]: # noqa: D pass diff --git a/dbt_semantic_interfaces/protocols/measure.py b/dbt_semantic_interfaces/protocols/measure.py index b505cffd..7f4dead5 100644 --- a/dbt_semantic_interfaces/protocols/measure.py +++ b/dbt_semantic_interfaces/protocols/measure.py @@ -3,7 +3,7 @@ from abc import abstractmethod from typing import Optional, Protocol, Sequence -from dbt_semantic_interfaces.protocols.meta import ConfigMeta +from dbt_semantic_interfaces.protocols.meta import PydanticSemanticLayerElementConfig from dbt_semantic_interfaces.references import MeasureReference from dbt_semantic_interfaces.type_enums import AggregationType @@ -102,5 +102,5 @@ def label(self) -> Optional[str]: @property @abstractmethod - def config(self) -> Optional[ConfigMeta]: # noqa: D + def config(self) -> Optional[PydanticSemanticLayerElementConfig]: # noqa: D pass diff --git a/dbt_semantic_interfaces/protocols/meta.py b/dbt_semantic_interfaces/protocols/meta.py index c2b5d208..ec4b06e1 100644 --- a/dbt_semantic_interfaces/protocols/meta.py +++ b/dbt_semantic_interfaces/protocols/meta.py @@ -2,7 +2,7 @@ from typing import Any, Dict, Protocol -class ConfigMeta(Protocol): # noqa: D +class PydanticSemanticLayerElementConfig(Protocol): # noqa: D """The config property allows you to configure additional resources/metadata.""" @property