josh-fell commented on code in PR #23559:
URL: https://github.com/apache/airflow/pull/23559#discussion_r868039292
##########
airflow/operators/python.py:
##########
@@ -327,7 +327,13 @@ class PythonVirtualenvOperator(PythonOperator):
processing templated fields, for examples ``['.sql', '.hql']``
"""
- template_fields: Sequence[str] = ('requirements',)
+ template_fields: Sequence[str] = tuple(
+ {
+ 'requirements',
+ }
+ | set(PythonOperator.template_fields)
+ )
Review Comment:
```suggestion
template_fields: Sequence[str] = tuple({"requirements"} |
set(PythonOperator.template_fields))
```
I think the comma in the first set is making black format the code strangely.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]