manifest: use explicit None checking in `_loadlazy`
authorPierre-Yves David <pierre-yves.david@octobus.net>
Mon, 05 Aug 2024 10:12:37 +0200
changeset 51771 1c28d9fdcd08
parent 51770 3be39e36732a
child 51772 8e1b28687704
manifest: use explicit None checking in `_loadlazy` This help pytype to understand what is going on with `v` type.
mercurial/manifest.py
--- a/mercurial/manifest.py	Mon Aug 05 10:11:51 2024 +0200
+++ b/mercurial/manifest.py	Mon Aug 05 10:12:37 2024 +0200
@@ -842,7 +842,7 @@
 
     def _loadlazy(self, d):
         v = self._lazydirs.get(d)
-        if v:
+        if v is not None:
             node, readsubtree, docopy = v
             if docopy:
                 self._dirs[d] = readsubtree(self._subpath(d), node).copy()