You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2021/06/25 05:05:04 UTC

[GitHub] [airflow] uranusjr commented on issue #16641: Load Entrypoint Plugins Before Directory Plugins

uranusjr commented on issue #16641:
URL: https://github.com/apache/airflow/issues/16641#issuecomment-868206395


   > For example, if I have a custom operator `MyOperator` that I want to derive from another developer's custom operator `TheirOperator`, and that operator is part of a package that uses the Airflow plugins entrypoint, I would probably have a `my_operator.py` file that looks like this:
   > 
   > ```python
   > from airflow.operators.their_plugin import TheirOperator
   > ```
   
   It is more idiomatic Python to import from the actual plugin instead. An operator is just a class and unrelated to the plugin interface, and [the `airflow.operators` is not even available anymore](https://airflow.apache.org/docs/apache-airflow/stable/plugins.html) since Airflow 2.0.
   


-- 
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org