turbaszek commented on a change in pull request #10930:
URL: https://github.com/apache/airflow/pull/10930#discussion_r489331040



##########
File path: airflow/example_dags/example_xcomargs.py
##########
@@ -66,4 +66,4 @@ def print_value(value):
     xcom_args_a = print_value("first!")  # type: ignore
     xcom_args_b = print_value("second!")  # type: ignore
 
-    bash_op1 >> xcom_args_a >> xcom_args_b >> bash_op2
+    bash_op1 >> xcom_args_a >> xcom_args_b >> bash_op2  # type: ignore

Review comment:
       I don't get it and I would prefer to solve it in other PR as I belived 
this will required either myplugin or some type changes in `@task` decorator. 
The original error:
   ```
   airflow/example_dags/example_xcomargs.py:66: error: Value of type variable 
"T"
   of "print_value" cannot be "str"
           xcom_args_a = print_value("first!")
                         ^
   airflow/example_dags/example_xcomargs.py:67: error: Value of type variable 
"T"
   of "print_value" cannot be "str"
           xcom_args_b = print_value("second!")
                         ^
   airflow/example_dags/example_xcomargs.py:69: error: Unsupported left operand
   type for >> ("BashOperator")
           bash_op1 >> xcom_args_a >> xcom_args_b >> bash_op2
   ```




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


Reply via email to