How to Solve NameError: name 'BaseOperatorLink' is not defined -- airflow

Solution: Import the 'BaseOperatorLink' module

# Add the following line to the top of your code
from airflow.models.baseoperator import BaseOperatorLink

 

For more information:
airflow BaseOperatorLink