diff --git a/mercurial/verify.py b/mercurial/verify.py --- a/mercurial/verify.py +++ b/mercurial/verify.py @@ -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):