Mercurial > public > mercurial-scm > hg-stable
diff mercurial/changegroup.py @ 48512: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 | 3f00665bbea0 |
children | 6000f5b25c9b |
line wrap: on
line diff
--- a/mercurial/changegroup.py Sun Dec 12 20:01:05 2021 -0500 +++ b/mercurial/changegroup.py Sun Dec 12 21:10:02 2021 -0500 @@ -350,10 +350,11 @@ def ondupchangelog(cl, rev): if rev < clstart: - duprevs.append(rev) + duprevs.append(rev) # pytype: disable=attribute-error def onchangelog(cl, rev): ctx = cl.changelogrevision(rev) + assert efilesset is not None # help pytype efilesset.update(ctx.files) repo.register_changeset(rev, ctx)