comparison mercurial/wireprototypes.py @ 43481:f5fcf7123a92

wireprototypes: disable pytype where it's just confused By inspection validnames is always a Set[bytes] here, but for some reason pytype is convinced it's a bytes. Let's disable the error for now. Differential Revision: https://phab.mercurial-scm.org/D7281
author Augie Fackler <augie@google.com>
date Wed, 06 Nov 2019 15:24:44 -0500
parents c59eb1560c44
children 9d2b2df2c2ba
comparison
equal deleted inserted replaced
43480:667f56d73ceb 43481:f5fcf7123a92
402 b'%s config option does not specify any known ' 402 b'%s config option does not specify any known '
403 b'compression engines' 403 b'compression engines'
404 ) 404 )
405 % config, 405 % config,
406 hint=_(b'usable compression engines: %s') 406 hint=_(b'usable compression engines: %s')
407 % b', '.sorted(validnames), 407 % b', '.sorted(validnames), # pytype: disable=attribute-error
408 ) 408 )
409 409
410 return compengines 410 return compengines
411 411
412 412