You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you try running mypy in incremental mode with Python 2, you get a spurious error in the second run (note that I update the timestamp of parent/b.py to force mypy to recheck that file):
That's amazing. The one difference between py2 and py3 that might matter
here is that the cycle of modules dependent on "builtins" differs between
versions. I guess running `mypy -v` might give some insight, if you haven't
tried that already. Also, I'd be interested to see what's in the metadata
for various files after the first run, and whether there's a difference in
the metadata between py2 and py runs.
Finally, one more difference would be absolute vs. relative import -- py2
defaults to relative import. But all your imports would seem to be
unambiguous.
I cannot repro this any more. According to git bisect it was fixed on August 18 by revision 95a0186, "Make incremental not propagate staleness if the public interface of a module is unchanged (v2) (#2014)". That's good enough for me!
Activity
[-]Bug involving Python 2, incremental mode, and possibly nested folders[/-][+]Bug involving Python 2, incremental mode, partial cache invalidation, and possibly nested folders[/+]gvanrossum commentedon Aug 1, 2016
gnprice commentedon Aug 4, 2016
Apparently this triggers frequently when using
--incrementalon some of our larger internal codebases at Dropbox.gvanrossum commentedon Oct 10, 2016
I cannot repro this any more. According to
git bisectit was fixed on August 18 by revision 95a0186, "Make incremental not propagate staleness if the public interface of a module is unchanged (v2) (#2014)". That's good enough for me!