Skip to content

Commit 2b2682d

Browse files
committed
fix lint
1 parent 4ac8a7b commit 2b2682d

File tree

1 file changed

+2
-2
lines changed
  • metadata-ingestion-modules/airflow-plugin/src/datahub_airflow_plugin

1 file changed

+2
-2
lines changed

metadata-ingestion-modules/airflow-plugin/src/datahub_airflow_plugin/_airflow_shims.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def get_task_inlets(operator: "Operator") -> List:
4646
return operator._inlets # type: ignore[attr-defined, union-attr]
4747
if hasattr(operator, "get_inlet_defs"):
4848
return operator.get_inlet_defs() # type: ignore[attr-defined]
49-
return operator.inlets
49+
return operator.inlets or []
5050

5151

5252
def get_task_outlets(operator: "Operator") -> List:
@@ -56,7 +56,7 @@ def get_task_outlets(operator: "Operator") -> List:
5656
return operator._outlets # type: ignore[attr-defined, union-attr]
5757
if hasattr(operator, "get_outlet_defs"):
5858
return operator.get_outlet_defs()
59-
return operator.outlets
59+
return operator.outlets or []
6060

6161

6262
__all__ = [

0 commit comments

Comments
 (0)