You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2022/01/21 15:56:46 UTC
[GitHub] [airflow] potiuk commented on pull request #21020: Fix last remaining MyPy errors
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org