ashb commented on a change in pull request #7484: [AIRFLOW-6864][depends on 
6863] Make airflow/jobs pylint compatible
URL: https://github.com/apache/airflow/pull/7484#discussion_r382925828
 
 

 ##########
 File path: airflow/utils/db.py
 ##########
 @@ -23,16 +23,18 @@
 from airflow import settings
 from airflow.configuration import conf
 # noinspection PyUnresolvedReferences
-from airflow.jobs.base_job import BaseJob  # noqa: F401  # pylint: 
disable=unused-import
-# noinspection PyUnresolvedReferences
 from airflow.models import (  # noqa: F401 # pylint: disable=unused-import
     DAG, XCOM_RETURN_KEY, BaseOperator, BaseOperatorLink, Connection, DagBag, 
DagModel, DagPickle, DagRun,
     DagTag, Log, Pool, SkipMixin, SlaMiss, TaskFail, TaskInstance, 
TaskReschedule, Variable, XCom,
 )
 # We need to add this model manually to get reset working well
 # noinspection PyUnresolvedReferences
 from airflow.models.serialized_dag import SerializedDagModel  # noqa: F401  # 
pylint: disable=unused-import
-from airflow.utils.session import create_session, provide_session  # noqa  # 
pylint: disable=unused-import
 
 Review comment:
   Removing create_session from here is a User-facing API change -- it's not 
unheard of for custom operators to access Airflow's DB via this.

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to