Skip to content

Commit

Permalink
Remove unneeded duplicate classes
Browse files Browse the repository at this point in the history
  • Loading branch information
courtneyholcomb committed Sep 16, 2024
1 parent 4a736f4 commit bf5646f
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions core/dbt/contracts/graph/unparsed.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
NodeVersion,
Owner,
Quoting,
TimeSpine,
UnitTestInputFixture,
UnitTestNodeVersions,
UnitTestOutputFixture,
Expand Down Expand Up @@ -207,26 +208,14 @@ class UnparsedNodeUpdate(HasConfig, HasColumnTests, HasColumnAndTestProps, HasYa
access: Optional[str] = None


@dataclass
class UnparsedCustomGranularity(dbtClassMixin):
name: str
column_name: Optional[str] = None


@dataclass
class UnparsedTimeSpine(dbtClassMixin):
standard_granularity_column: str
custom_granularities: List[UnparsedCustomGranularity] = field(default_factory=list)


@dataclass
class UnparsedModelUpdate(UnparsedNodeUpdate):
quote_columns: Optional[bool] = None
access: Optional[str] = None
latest_version: Optional[NodeVersion] = None
versions: Sequence[UnparsedVersion] = field(default_factory=list)
deprecation_date: Optional[datetime.datetime] = None
time_spine: Optional[UnparsedTimeSpine] = None
time_spine: Optional[TimeSpine] = None

def __post_init__(self) -> None:
if self.latest_version:
Expand Down

0 comments on commit bf5646f

Please sign in to comment.