Mercurial > hg
comparison tests/test-check-pytype.t @ 48473:8843c9a8771b
pytype: stop excluding changegroup.py
The false positives that were detected seem to be related to what happens to the
variables after the local methods are used:
File "/mnt/c/Users/Matt/hg/mercurial/changegroup.py", line 353, in ondupchangelog:
No attribute 'append' on range [attribute-error]
In Union[List[nothing], range]
File "/mnt/c/Users/Matt/hg/mercurial/changegroup.py", line 357, in onchangelog:
No attribute 'update' on None [attribute-error]
Differential Revision: https://phab.mercurial-scm.org/D11912
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Sun, 12 Dec 2021 21:10:02 -0500 |
parents | a4d8de93023c |
children | abac7983d28e |
comparison
equal
deleted
inserted
replaced
48472:a4d8de93023c | 48473:8843c9a8771b |
---|---|
8 I can tell, so let's just hide those files from it for now. We should | 8 I can tell, so let's just hide those files from it for now. We should |
9 endeavor to empty this list out over time, as some of these are | 9 endeavor to empty this list out over time, as some of these are |
10 probably hiding real problems. | 10 probably hiding real problems. |
11 | 11 |
12 mercurial/bundlerepo.py # no vfs and ui attrs on bundlerepo | 12 mercurial/bundlerepo.py # no vfs and ui attrs on bundlerepo |
13 mercurial/changegroup.py # mysterious incorrect type detection | |
14 mercurial/chgserver.py # [attribute-error] | 13 mercurial/chgserver.py # [attribute-error] |
15 mercurial/cmdutil.py # No attribute 'markcopied' on mercurial.context.filectx [attribute-error] | 14 mercurial/cmdutil.py # No attribute 'markcopied' on mercurial.context.filectx [attribute-error] |
16 mercurial/context.py # many [attribute-error] | 15 mercurial/context.py # many [attribute-error] |
17 mercurial/copies.py # No attribute 'items' on None [attribute-error] | 16 mercurial/copies.py # No attribute 'items' on None [attribute-error] |
18 mercurial/crecord.py # tons of [attribute-error], [module-attr] | 17 mercurial/crecord.py # tons of [attribute-error], [module-attr] |
54 TODO: use --no-cache on test server? Caching the files locally helps during | 53 TODO: use --no-cache on test server? Caching the files locally helps during |
55 development, but may be a hinderance for CI testing. | 54 development, but may be a hinderance for CI testing. |
56 | 55 |
57 $ pytype -V 3.6 --keep-going --jobs auto mercurial \ | 56 $ pytype -V 3.6 --keep-going --jobs auto mercurial \ |
58 > -x mercurial/bundlerepo.py \ | 57 > -x mercurial/bundlerepo.py \ |
59 > -x mercurial/changegroup.py \ | |
60 > -x mercurial/chgserver.py \ | 58 > -x mercurial/chgserver.py \ |
61 > -x mercurial/cmdutil.py \ | 59 > -x mercurial/cmdutil.py \ |
62 > -x mercurial/context.py \ | 60 > -x mercurial/context.py \ |
63 > -x mercurial/copies.py \ | 61 > -x mercurial/copies.py \ |
64 > -x mercurial/crecord.py \ | 62 > -x mercurial/crecord.py \ |