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_r350415226
##########
File path: airflow/models/baseoperator.py
##########
@@ -233,31 +232,28 @@ class derived from this one results in the creation of a
task object,
result
:type do_xcom_push: bool
"""
-
# For derived classes to define which fields will get jinjaified
- template_fields = [] # type: Iterable[str]
+ template_fields: Iterable[str] = []
# Defines which files extensions to look for in the templated fields
- template_ext = [] # type: Iterable[str]
+ template_ext: Iterable[str] = []
# Defines the color in the UI
ui_color = '#fff' # type: str
ui_fgcolor = '#000' # type: str
pool = "" # type: str
# base list which includes all the attrs that don't need deep copy.
- _base_operator_shallow_copy_attrs = ('user_defined_macros',
- 'user_defined_filters',
- 'params',
- '_log',) # type: Iterable[str]
+ BASE_OPERATOR_SHALLOW_COPY_ATTRS: Tuple[str, ...] = \
Review comment:
I'll revert it. Do not want to make some unnecessary changes.
----------------------------------------------------------------
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