ashb commented on pull request #10806:
URL: https://github.com/apache/airflow/pull/10806#issuecomment-689470621


   Ugh, mypy is _seriously_ unhappy about this, even if we enable "support" 
with "--namespace-packages" 
https://github.com/python/mypy/issues/5759#issuecomment-460033262
   
   ```
   airflow ❯ mypy --namespace-packages airflow/providers/docker/hooks/docker.py
   airflow/providers/docker/hooks/docker.py:20: error: Module 'docker' has no 
attribute 'APIClient'
       from docker import APIClient
       ^
   Found 1 error in 1 file (checked 1 source file)
   
   ~/code/airflow/airflow implicit-namespaces-for-providers*
   airflow ❯ mypy --version
   mypy 0.782
   
   ~/code/airflow/airflow implicit-namespaces-for-providers*
   airflow ❯ touch airflow/providers/__init__.py
   
   ~/code/airflow/airflow implicit-namespaces-for-providers*
   airflow ❯ mypy --namespace-packages airflow/providers/docker/hooks/docker.py
   Success: no issues found in 1 source file
   ```
   
   DAMN IT.


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