Mercurial > public > mercurial-scm > hg-stable
diff tests/test-check-pytype.t @ 48511:a4d8de93023c
pytype: stop excluding upgrade.py
The sole failure here was this, which is fixed by simply creating a set like the
caller, instead of a dict:
File "/mnt/c/Users/Matt/hg/mercurial/upgrade.py", line 73, in upgraderepo:
No attribute 'discard' on Dict[nothing, nothing] [attribute-error]
In Union[Any, Dict[nothing, nothing]]
Differential Revision: https://phab.mercurial-scm.org/D11911
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Sun, 12 Dec 2021 20:01:05 -0500 |
parents | 51841b23670b |
children | 8843c9a8771b |
line wrap: on
line diff
--- a/tests/test-check-pytype.t Tue Dec 14 20:36:36 2021 +0100 +++ b/tests/test-check-pytype.t Sun Dec 12 20:01:05 2021 -0500 @@ -40,7 +40,6 @@ mercurial/testing/storage.py # tons of [attribute-error] mercurial/ui.py # [attribute-error], [wrong-arg-types] mercurial/unionrepo.py # ui, svfs, unfiltered [attribute-error] -mercurial/upgrade.py # line 84, in upgraderepo: No attribute 'discard' on Dict[nothing, nothing] [attribute-error] mercurial/util.py # [attribute-error], [wrong-arg-count] mercurial/utils/procutil.py # [attribute-error], [module-attr], [bad-return-type] mercurial/utils/stringutil.py # [module-attr], [wrong-arg-count] @@ -88,7 +87,6 @@ > -x mercurial/thirdparty \ > -x mercurial/ui.py \ > -x mercurial/unionrepo.py \ - > -x mercurial/upgrade.py \ > -x mercurial/utils/procutil.py \ > -x mercurial/utils/stringutil.py \ > -x mercurial/utils/memorytop.py \