diff mercurial/verify.py @ 46790:5137896602d9 stable

typing: add an assertion to verify.py to appease pytype Differential Revision: https://phab.mercurial-scm.org/D10212
author Matt Harbison <matt_harbison@yahoo.com>
date Fri, 12 Mar 2021 23:28:56 -0500
parents ed0899e01628
children d4ba4d51f85f
line wrap: on
line diff
--- a/mercurial/verify.py	Fri Mar 12 20:25:12 2021 -0500
+++ b/mercurial/verify.py	Fri Mar 12 23:28:56 2021 -0500
@@ -434,6 +434,7 @@
                 filenodes.setdefault(f, {}).update(onefilenodes)
 
         if not dir and subdirnodes:
+            assert subdirprogress is not None  # help pytype
             subdirprogress.complete()
             if self.warnorphanstorefiles:
                 for f in sorted(storefiles):