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 2019/07/27 06:31:25 UTC
[GitHub] [airflow] houqp commented on issue #5664: [AIRFLOW-XXX] fix all
missing type annotation errors from dmypy
houqp commented on issue #5664: [AIRFLOW-XXX] fix all missing type annotation errors from dmypy
URL: https://github.com/apache/airflow/pull/5664#issuecomment-515657115
`dmypy` is usually 10x to 100x faster compared `mypy` on subseqent runs. But like @mik-laj mentioned, they sometimes don't yield the same result. For the case here, `dmypy` is actually stricter for unknown reason. Since `dmypy` is also part of Mypy project, I would expect it to be consistent with `mypy` in the long run.
For now, I found it most efficient to use `dmypy` for development for quick feedback loops, then use `mypy` for final check before push and in CI/CD runs.
If we can automate the type hint extraction from docstring, that would be great. The other way around: generating type info for API docs from type hints will also be interesting.
----------------------------------------------------------------
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:
users@infra.apache.org
With regards,
Apache Git Services