# HG changeset patch # User Pierre-Yves David # Date 1722845611 -7200 # Node ID 8e1b2868770448ac460255f3faa9b19f0d18ea14 # Parent 1c28d9fdcd08f777ca13fc997ded40d615e71bc3 manifest: use explicit None checking in `_loaddifflazy` This helps pytype to understand what is going here with `v2` type. diff -r 1c28d9fdcd08 -r 8e1b28687704 mercurial/manifest.py --- a/mercurial/manifest.py Mon Aug 05 10:12:37 2024 +0200 +++ b/mercurial/manifest.py Mon Aug 05 10:13:31 2024 +0200 @@ -874,7 +874,7 @@ toloadlazy = [] for d, v1 in t1._lazydirs.items(): v2 = t2._lazydirs.get(d) - if not v2 or v2[0] != v1[0]: + if v2 is None or v2[0] != v1[0]: toloadlazy.append(d) for d, v1 in t2._lazydirs.items(): if d not in t1._lazydirs: