uranusjr commented on code in PR #58368:
URL: https://github.com/apache/airflow/pull/58368#discussion_r2545149947
##########
devel-common/src/tests_common/test_utils/compat.py:
##########
@@ -106,6 +107,11 @@
TaskOutletDatasetReference as TaskOutletAssetReference,
)
+ try:
+ from airflow.models.asset import TaskInletAssetReference
+ except ImportError:
+ TaskInletAssetReference = None # type: ignore[assignment,misc]
Review Comment:
This should have a comment explaining when the except path is needed.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]