# HG changeset patch # User Matt Harbison # Date 2021-03-13 04:28:56 # Node ID 5137896602d92551bc361d1a0a80974dc412be6d # Parent 914ca0a9851833043f2820d8a85c6a38742087ec typing: add an assertion to verify.py to appease pytype Differential Revision: https://phab.mercurial-scm.org/D10212 diff --git a/mercurial/verify.py b/mercurial/verify.py --- a/mercurial/verify.py +++ b/mercurial/verify.py @@ -434,6 +434,7 @@ class verifier(object): 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):