Skip to content

Commit

Permalink
type + fix typo in ModelNodeArgs.unique_id (#7992)
Browse files Browse the repository at this point in the history
  • Loading branch information
MichelleArk authored Jun 29, 2023
1 parent b8bc264 commit 8c201e8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .changes/unreleased/Fixes-20230629-120321.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
kind: Fixes
body: Fix typo in ModelNodeArgs
time: 2023-06-29T12:03:21.179283-04:00
custom:
Author: michelleark
Issue: "7991"
4 changes: 2 additions & 2 deletions core/dbt/contracts/graph/node_args.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ class ModelNodeArgs:
enabled: bool = True

@property
def unique_id(self):
def unique_id(self) -> str:
unique_id = f"{NodeType.Model}.{self.package_name}.{self.name}"
if self.version:
unique_id = f"{unique_id}.{self.verison}"
unique_id = f"{unique_id}.{self.version}"

return unique_id

0 comments on commit 8c201e8

Please sign in to comment.