uranusjr commented on code in PR #25242: URL: https://github.com/apache/airflow/pull/25242#discussion_r933725875
########## airflow/example_dags/example_branch_operator_decorator.py: ########## @@ -16,10 +16,12 @@ # specific language governing permissions and limitations # under the License. -"""Example DAG demonstrating the usage of the BranchPythonOperator.""" +"""Example DAG demonstrating the usage of the ``@task.branch`` TaskFlow API decorator.""" import random -from datetime import datetime +from typing import List Review Comment: I don’t think we want to _enforce_ it for now. We can change each file gradually when we hit them instead, and pyupgrade performs per-file checks quite well already (it enforces modern syntax if you add the `__future__` import in a file). -- 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]
