Skip to content

Commit

Permalink
Undo conditional agatee import
Browse files Browse the repository at this point in the history
  • Loading branch information
jtcohen6 committed May 7, 2024
1 parent a0fdc3d commit f16185f
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions core/dbt/artifacts/schemas/run/v5/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,13 @@
import threading
from dataclasses import dataclass, field
from datetime import datetime
from typing import TYPE_CHECKING, Any, Dict, Iterable, Optional, Sequence, Tuple
from typing import Any, Dict, Iterable, Optional, Sequence, Tuple

# https://github.com/dbt-labs/dbt-core/issues/10098
# Needed for Mashumaro serialization of RunResult below
# TODO: investigate alternative approaches to restore conditional import
# if TYPE_CHECKING:
import agate

from dbt.artifacts.resources import CompiledResource
from dbt.artifacts.schemas.base import (
Expand All @@ -22,9 +28,6 @@
from dbt_common.clients.system import write_json
from dbt_common.constants import SECRET_ENV_PREFIX

if TYPE_CHECKING:
import agate


@dataclass
class RunResult(NodeResult):
Expand Down

0 comments on commit f16185f

Please sign in to comment.