Skip to content

Commit

Permalink
Format and sort imports
Browse files Browse the repository at this point in the history
  • Loading branch information
uranusjr committed Oct 4, 2023
1 parent 8acec19 commit d457a69
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions docs/apache-airflow/howto/define-extra-link.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ The following code shows how to add extra links to an operator via Plugins:
.. code-block:: python
from airflow.models.baseoperator import BaseOperator, BaseOperatorLink
from airflow.plugins_manager import AirflowPlugin
from airflow.models.taskinstancekey import TaskInstanceKey
from airflow.plugins_manager import AirflowPlugin
class GoogleLink(BaseOperatorLink):
Expand Down Expand Up @@ -81,9 +81,9 @@ tasks using :class:`~airflow.providers.amazon.aws.transfers.gcs_to_s3.GCSToS3Ope

.. code-block:: python
from airflow.plugins_manager import AirflowPlugin
from airflow.models.baseoperator import BaseOperator, BaseOperatorLink
from airflow.models.taskinstancekey import TaskInstanceKey
from airflow.plugins_manager import AirflowPlugin
from airflow.providers.amazon.aws.transfers.gcs_to_s3 import GCSToS3Operator
Expand Down Expand Up @@ -119,11 +119,10 @@ Console, but if we wanted to change that link we could:

.. code-block:: python
from airflow.plugins_manager import AirflowPlugin
from airflow.models.baseoperator import BaseOperatorLink, BaseOperator
from airflow.models.taskinstancekey import TaskInstanceKey
from airflow.models.xcom import XCom
from airflow.plugins_manager import AirflowPlugin
from airflow.providers.google.cloud.operators.bigquery import BigQueryOperator
# Change from https to http just to display the override
Expand Down

0 comments on commit d457a69

Please sign in to comment.