uranusjr commented on code in PR #25242: URL: https://github.com/apache/airflow/pull/25242#discussion_r930596224
########## 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 wonder if this is a good chance to also switch these DAGs to `from __future__ import annotation`. It would allow us to write e.g. `list[str]` instead of importing from typing. -- 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]
