potiuk commented on a change in pull request #6601: [AIRFLOW-6010] Remove 
cyclic imports and pylint disables
URL: https://github.com/apache/airflow/pull/6601#discussion_r348544141
 
 

 ##########
 File path: airflow/models/baseoperator.py
 ##########
 @@ -26,19 +26,18 @@
 import warnings
 from abc import ABCMeta, abstractmethod
 from datetime import datetime, timedelta
-from typing import Any, Callable, Dict, FrozenSet, Iterable, List, Optional, 
Set, Type, Union
+from typing import Any, Callable, Dict, FrozenSet, Iterable, List, Optional, 
Set, Tuple, Type, Union
 
 import jinja2
 from cached_property import cached_property
 from dateutil.relativedelta import relativedelta
 
-from airflow import settings
 from airflow.configuration import conf
 from airflow.exceptions import AirflowException, DuplicateTaskIdFound
 from airflow.lineage import DataSet, apply_lineage, prepare_lineage
-from airflow.models.dag import DAG
 from airflow.models.pool import Pool
-from airflow.models.taskinstance import TaskInstance, clear_task_instances
+# noinspection PyPep8Naming
+from airflow.models.taskinstance import TaskInstance as TI, 
clear_task_instances
 
 Review comment:
   It was used below so I just moved it from the place where it was done by "TI 
= TaskInstance" import. I am super happy to get rid of it completely and use 
TaskInstance instead everywhere but just wanted to make it consistently. I will 
use TaskInstance everywhere. I am not big fan of short names.

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