Skip to content

Commit

Permalink
Add column_name to protocol
Browse files Browse the repository at this point in the history
  • Loading branch information
courtneyholcomb committed Aug 29, 2024
1 parent 5bd0d7e commit 6ff0166
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion dbt_semantic_interfaces/protocols/time_spine.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from __future__ import annotations

from abc import abstractmethod
from typing import Protocol, Sequence
from typing import Optional, Protocol, Sequence

from dbt_semantic_interfaces.implementations.node_relation import NodeRelation
from dbt_semantic_interfaces.type_enums import TimeGranularity
Expand Down Expand Up @@ -57,3 +57,9 @@ class TimeSpineCustomGranularityColumn(Protocol):
def name(self) -> str:
"""The column name."""
pass

@property
@abstractmethod
def column_name(self) -> Optional[str]:
"""The column name."""
pass

0 comments on commit 6ff0166

Please sign in to comment.