potiuk commented on pull request #21020:
URL: https://github.com/apache/airflow/pull/21020#issuecomment-1018635332


   Seems like this one will also be a collaborative effort eventually, There 
are a few errors around "airflow.models.decorators" package which I am not 
entirely sure why they are there and whether I made the right fix.
   
   The one remaining  - after I think I solved all other is 
   
   ```
   airflow/models/dag.py:2118: error: Argument 1 to "partial" has incompatible
   type "_TaskDecoratorFactory"; expected "Callable[..., Any]"  [arg-type]
       ...return cast("TaskDecoratorFactory", functools.partial(task, dag=self))
                                                                ^
   airflow/models/dag.py:2118: note: "_TaskDecoratorFactory.__call__" has type 
"staticmethod"
   Found 1 error in 1 file (checked 2704 source files)
   
   ERROR: The previous step completed with error. Please take a look at output 
above 
   
   ```
   
   But I am not sure if the fixes are added are good. Seems like `mypy` 
sometimes uses the stub and sometimes not and I have no idea why.
   
   
   
   


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