uranusjr commented on pull request #20860:
URL: https://github.com/apache/airflow/pull/20860#issuecomment-1038943518


   Urgh, I know what’s going on, Mypy doesn’t like it when you reassign a 
variable to a different type. For this particular case, the erroring file has
   
   
https://github.com/apache/airflow/blob/28378d867afaac497529bd2e1d2c878edf66f460/airflow/example_dags/example_kubernetes_executor.py#L61
   
   which assigns a task to a variable types for the task _function_. Mypy 
somehow allows that (it probably shouldn’t) but errors later when you actually 
try to use the variable.
   
   


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


Reply via email to