Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
Peng Gao committed Feb 6, 2024
1 parent 3478c25 commit 5083956
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from datetime import datetime
from typing import TYPE_CHECKING, Dict, List, Optional, Set, Tuple, Union, cast, Any
from typing import TYPE_CHECKING, Dict, List, Optional, Set, Tuple, Union, cast

from airflow.configuration import conf
from datahub.api.entities.datajob import DataFlow, DataJob
Expand All @@ -13,7 +13,7 @@
from datahub.utilities.urns.data_job_urn import DataJobUrn

from datahub_airflow_plugin._airflow_compat import AIRFLOW_PATCHED
from datahub_airflow_plugin._config import DatajobUrl, DatahubLineageConfig
from datahub_airflow_plugin._config import DatahubLineageConfig, DatajobUrl

assert AIRFLOW_PATCHED

Expand Down Expand Up @@ -209,7 +209,7 @@ def generate_datajob(
set_dependencies: bool = True,
capture_owner: bool = True,
capture_tags: bool = True,
config: DatahubLineageConfig = None,
config: DatahubLineageConfig = DatajobUrl.TASKINSTANCE,
) -> DataJob:
"""
Expand Down Expand Up @@ -297,7 +297,7 @@ def create_datajob_instance(
task: "Operator",
dag: "DAG",
data_job: Optional[DataJob] = None,
config: DatahubLineageConfig = None,
config: DatahubLineageConfig = DatajobUrl.TASKINSTANCE,
) -> DataProcessInstance:
if data_job is None:
data_job = AirflowGenerator.generate_datajob(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from datetime import datetime
from typing import TYPE_CHECKING, Dict, List, Any
from typing import TYPE_CHECKING, Dict, List

from datahub.api.entities.dataprocess.dataprocess_instance import InstanceRunResult

Expand Down

0 comments on commit 5083956

Please sign in to comment.