--- a/mercurial/bundle2.py Sun Nov 20 22:54:43 2022 -0500
+++ b/mercurial/bundle2.py Wed Nov 23 11:22:22 2022 -0500
@@ -1938,7 +1938,12 @@
raise error.Abort(
_(b'old bundle types only supports v1 changegroups')
)
+
+ # HG20 is the case without 2 values to unpack, but is handled above.
+ # pytype: disable=bad-unpacking
header, comp = bundletypes[bundletype]
+ # pytype: enable=bad-unpacking
+
if comp not in util.compengines.supportedbundletypes:
raise error.Abort(_(b'unknown stream compression type: %s') % comp)
compengine = util.compengines.forbundletype(comp)