changeset 46690:90a92f041fc6 stable

typing: add an assertion instead of blacklisting mercurial/extensions.py Differential Revision: https://phab.mercurial-scm.org/D10175
author Matt Harbison <matt_harbison@yahoo.com>
date Thu, 11 Mar 2021 17:55:52 -0500
parents 8408c3198ec1
children 1099541b6462
files mercurial/extensions.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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()