typing: add an assertion instead of blacklisting mercurial/extensions.py stable
authorMatt Harbison <matt_harbison@yahoo.com>
Thu, 11 Mar 2021 17:55:52 -0500
branchstable
changeset 46690 90a92f041fc6
parent 46689 8408c3198ec1
child 46691 1099541b6462
typing: add an assertion instead of blacklisting mercurial/extensions.py Differential Revision: https://phab.mercurial-scm.org/D10175
mercurial/extensions.py
--- a/mercurial/extensions.py	Thu Mar 11 17:27:31 2021 -0500
+++ b/mercurial/extensions.py	Thu Mar 11 17:55:52 2021 -0500
@@ -912,6 +912,7 @@
     exts = {}
     for ename, ext in extensions():
         doc = gettext(ext.__doc__) or _(b'(no help text available)')
+        assert doc is not None  # help pytype
         if shortname:
             ename = ename.split(b'.')[-1]
         exts[ename] = doc.splitlines()[0].strip()