tirkarthi commented on PR #60274:
URL: https://github.com/apache/airflow/pull/60274#issuecomment-3733402696

   Mypy related error as below but not reproducible locally. Do I need to add 
stub pypi packages in pyproject.toml?
   
   ```
      
providers/fab/src/airflow/providers/fab/auth_manager/fab_auth_manager.py:25: 
error: Library stubs not installed for "cachetools"  [import-untyped]
         from cachetools import TTLCache, cachedmethod
         ^
     
providers/fab/src/airflow/providers/fab/auth_manager/fab_auth_manager.py:25: 
note: Hint: "python3 -m pip install types-cachetools"
     
providers/fab/src/airflow/providers/fab/auth_manager/fab_auth_manager.py:25: 
note: (or run "mypy --install-types" to install all missing stub packages)
     
providers/fab/src/airflow/providers/fab/auth_manager/fab_auth_manager.py:25: 
note: See 
https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
     Found 1 error in 1 file (checked 4075 source files)
   
     Error 1 returned
     You are running mypy with the folders selected. If you want to reproduce 
it locally, you need to run the following command:
   
     prek --hook-stage manual mypy-<folder> --all-files
   
     If you see strange stacktraces above, and can't reproduce it, please run 
this command and try again:
   
     breeze ci-image build --python 3.10
   
     You can also run `breeze down --cleanup-mypy-cache` to clean up the cache 
used.
   ```
   
   Running mypy locally
   
   ```
   mypy --version                                                               
   mypy 1.18.2 (compiled: yes)
   pip freeze | grep -i cachetools                            
   cachetools==6.2.4
   mypy providers/fab/src/airflow/providers/fab/auth_manager/fab_auth_manager.py
   Success: no issues found in 1 source file
   ```
   


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