potiuk commented on issue #53395:
URL: https://github.com/apache/airflow/issues/53395#issuecomment-3081366009

   Unfortunately - mypy is known to use heuristics to determine "guessed" types 
of variables and yes - it is know it will produce different results when 
different sets of files are presented to it as input. Also we are using caching 
- and sometimes result of running mypy will differ depending on what is already 
in the cache. So there are multiple reasons mypy runs might different depending 
on the circumstances, PR, previous runs.
   
   Not sure if we can do anything about it. I have no idea how to make it 
consistent and also do "incremental" behaviour works - mypy is slow and running 
it on "all files" for a PR touching only one or two files will take minutes not 
seconds.
   
   The only one I can think of is that for this kind of removals we only look 
at result of runnig things on "all files without cache" (which is what happens 
in CI - and use it as "gold standard of what we should hold mypy to". 
   
   


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