diff --git a/mercurial/util.py b/mercurial/util.py --- a/mercurial/util.py +++ b/mercurial/util.py @@ -1173,6 +1173,8 @@ else: vparts, extra = m.group(1), None + assert vparts is not None # help pytype + vints = [] for i in vparts.split(b'.'): try: