[Updated] D10175: typing: add an assertion instead of blacklisting mercurial/extensions.py
mharbison72 (Matt Harbison)
phabricator at mercurial-scm.org
Wed Mar 17 10:11:30 UTC 2021
Closed by commit rHG90a92f041fc6: typing: add an assertion instead of blacklisting mercurial/extensions.py (authored by mharbison72).
This revision was automatically updated to reflect the committed changes.
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D10175?vs=26272&id=26465
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D10175/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D10175
AFFECTED FILES
mercurial/extensions.py
CHANGE DETAILS
diff --git a/mercurial/extensions.py b/mercurial/extensions.py
--- a/mercurial/extensions.py
+++ b/mercurial/extensions.py
@@ -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()
To: mharbison72, #hg-reviewers, pulkit
Cc: mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20210317/14bd0280/attachment-0002.html>
More information about the Mercurial-patches
mailing list