Skip to content

Commit

Permalink
Ignore attr-defined for compat import (apache#43301)
Browse files Browse the repository at this point in the history
  • Loading branch information
uranusjr authored and harjeevanmaan committed Oct 23, 2024
1 parent a0d7c97 commit 2d4ea13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion providers/src/airflow/providers/openlineage/utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -678,7 +678,7 @@ def translate_airflow_asset(asset: Asset, lineage_context) -> OpenLineageDataset
from airflow.assets import _get_normalized_scheme
except ModuleNotFoundError:
try:
from airflow.datasets import _get_normalized_scheme # type: ignore[no-redef]
from airflow.datasets import _get_normalized_scheme # type: ignore[no-redef, attr-defined]
except ImportError:
return None

Expand Down

0 comments on commit 2d4ea13

Please sign in to comment.