[Updated] D10211: typing: add an assertion to mercurial/hgweb/webcommands.py to help pytype

mharbison72 (Matt Harbison) phabricator at mercurial-scm.org
Thu Mar 18 21:06:54 UTC 2021


Closed by commit rHG914ca0a98518: typing: add an assertion to mercurial/hgweb/webcommands.py to help pytype (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/D10211?vs=26325&id=26504

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D10211/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D10211

AFFECTED FILES
  mercurial/hgweb/webcommands.py

CHANGE DETAILS

diff --git a/mercurial/hgweb/webcommands.py b/mercurial/hgweb/webcommands.py
--- a/mercurial/hgweb/webcommands.py
+++ b/mercurial/hgweb/webcommands.py
@@ -1156,6 +1156,7 @@
 
     linerange = None
     if lrange is not None:
+        assert lrange is not None  # help pytype (!?)
         linerange = webutil.formatlinerange(*lrange)
         # deactivate numeric nav links when linerange is specified as this
         # would required a dedicated "revnav" class



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/20210318/03501a5d/attachment-0002.html>


More information about the Mercurial-patches mailing list