# HG changeset patch # User Augie Fackler # Date 1573078773 18000 # Node ID ea25b46732311b52e8b7b730dfb04b69dec8dab2 # Parent d5bef33ab83c19e7a4c22a318123194df53f6ab3 bundle2: more pytype suppressions around bytestring We clearly need to work around this somehow. Differential Revision: https://phab.mercurial-scm.org/D7291 diff -r d5bef33ab83c -r ea25b4673231 mercurial/bundle2.py --- a/mercurial/bundle2.py Wed Nov 06 16:26:53 2019 -0500 +++ b/mercurial/bundle2.py Wed Nov 06 17:19:33 2019 -0500 @@ -653,7 +653,9 @@ """add a stream level parameter""" if not name: raise error.ProgrammingError(b'empty parameter name') - if name[0:1] not in pycompat.bytestr(string.ascii_letters): + if name[0:1] not in pycompat.bytestr( + string.ascii_letters # pytype: disable=wrong-arg-types + ): raise error.ProgrammingError( b'non letter first character: %s' % name ) @@ -836,7 +838,9 @@ """ if not name: raise ValueError(r'empty parameter name') - if name[0:1] not in pycompat.bytestr(string.ascii_letters): + if name[0:1] not in pycompat.bytestr( + string.ascii_letters # pytype: disable=wrong-arg-types + ): raise ValueError(r'non letter first character: %s' % name) try: handler = b2streamparamsmap[name.lower()]