Skip to content

Commit

Permalink
Fix Dataset import linting
Browse files Browse the repository at this point in the history
  • Loading branch information
yermalov-here committed Oct 15, 2023
1 parent 92f0610 commit e8d2159
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion airflow/listeners/spec/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
from pluggy import HookspecMarker

if TYPE_CHECKING:
from airflow import Dataset
from airflow.datasets import Dataset

hookspec = HookspecMarker("airflow")

Expand Down
2 changes: 1 addition & 1 deletion tests/listeners/dataset_listener.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
from airflow.listeners import hookimpl

if typing.TYPE_CHECKING:
from airflow.models.dataset import Dataset
from airflow.datasets import Dataset


changed: list[Dataset] = []
Expand Down
2 changes: 1 addition & 1 deletion tests/listeners/test_dataset_listener.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

import pytest

from airflow import Dataset
from airflow.datasets import Dataset
from airflow.listeners.listener import get_listener_manager
from airflow.models.dataset import DatasetModel
from airflow.operators.empty import EmptyOperator
Expand Down

0 comments on commit e8d2159

Please sign in to comment.