Skip to content

Commit

Permalink
Merge pull request #317 from godatadriven/looser-catalog-nodes
Browse files Browse the repository at this point in the history
Looser type for Catalog nodes
  • Loading branch information
pgoslatara authored Dec 20, 2024
2 parents 68b9f10 + 521a746 commit c1ad10d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/dbt_bouncer/artifact_parsers/parsers_catalog.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import logging
import warnings
from typing import TYPE_CHECKING, List
from typing import TYPE_CHECKING, List, Union

from pydantic import BaseModel

Expand All @@ -11,8 +11,9 @@
from dbt_artifacts_parser.parsers.catalog.catalog_v1 import (
CatalogV1,
)
from dbt_artifacts_parser.parsers.catalog.catalog_v1 import Nodes as CatalogNodes
from dbt_artifacts_parser.parsers.catalog.catalog_v1 import (
Nodes as CatalogNodes,
Sources as CatalogSources,
)
if TYPE_CHECKING:
from pathlib import Path
Expand All @@ -26,7 +27,7 @@
class DbtBouncerCatalogNode(BaseModel):
"""Model for all nodes in `catalog.json`."""

catalog_node: CatalogNodes
catalog_node: Union[CatalogNodes, CatalogSources]
original_file_path: str
unique_id: str

Expand Down

0 comments on commit c1ad10d

Please sign in to comment.