typing: add an assertion to verify.py to appease pytype stable
authorMatt Harbison <matt_harbison@yahoo.com>
Fri, 12 Mar 2021 23:28:56 -0500
branchstable
changeset 46790 5137896602d9
parent 46789 914ca0a98518
child 46791 d35063ebd761
typing: add an assertion to verify.py to appease pytype Differential Revision: https://phab.mercurial-scm.org/D10212
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):