You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "adam hitchcock (JIRA)" <ji...@apache.org> on 2018/11/27 23:26:00 UTC

[jira] [Updated] (AIRFLOW-3407) BaseOperator and LoggingMixin do not call super().__init__

     [ https://issues.apache.org/jira/browse/AIRFLOW-3407?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

adam hitchcock updated AIRFLOW-3407:
------------------------------------
    Summary: BaseOperator and LoggingMixin do not call super().__init__  (was: BaseOperator does not call super().__init__)

> BaseOperator and LoggingMixin do not call super().__init__
> ----------------------------------------------------------
>
>                 Key: AIRFLOW-3407
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-3407
>             Project: Apache Airflow
>          Issue Type: Bug
>          Components: operators
>    Affects Versions: 1.10.1
>            Reporter: adam hitchcock
>            Priority: Major
>
> TheĀ {{BaseOperator}} is not necessarily the last class in the MRO; usually it is best practice to always call {{super().__init__(*args, **kwargs)}}
>  to make sure that every class gets it chance to {{__init__}}.
> Is there a specific reason {{BaseOperator}} doesn't call super?



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)