wireprototypes: disable pytype where it's just confused
authorAugie Fackler <augie@google.com>
Wed, 06 Nov 2019 15:24:44 -0500
changeset 43481 f5fcf7123a92
parent 43480 667f56d73ceb
child 43482 fc19f8ab8199
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
mercurial/wireprototypes.py
--- a/mercurial/wireprototypes.py	Wed Nov 06 15:16:04 2019 -0500
+++ b/mercurial/wireprototypes.py	Wed Nov 06 15:24:44 2019 -0500
@@ -404,7 +404,7 @@
             )
             % config,
             hint=_(b'usable compression engines: %s')
-            % b', '.sorted(validnames),
+            % b', '.sorted(validnames),  # pytype: disable=attribute-error
         )
 
     return compengines