diff -r 914ca0a98518 -r 5137896602d9 mercurial/verify.py --- 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):