linelog: suppress annoying pytype warning about an ignored metaclass
authorAugie Fackler <augie@google.com>
Wed, 06 Nov 2019 14:11:29 -0500
changeset 43472 acc4047c2194
parent 43471 8492c6293c31
child 43473 14e374d4c9ee
linelog: suppress annoying pytype warning about an ignored metaclass This isn't actively hurting us right now, and it's not trivial to set up this metaclass correctly on both Python 2 and Python 3 without dragging in all of `six`, but we still get lots of typechecking goodness with this error suppressed. Differential Revision: https://phab.mercurial-scm.org/D7270
mercurial/linelog.py
--- a/mercurial/linelog.py	Wed Nov 06 14:10:09 2019 -0500
+++ b/mercurial/linelog.py	Wed Nov 06 14:11:29 2019 -0500
@@ -53,7 +53,7 @@
         return iter(self.lines)
 
 
-class _llinstruction(object):
+class _llinstruction(object):  # pytype: disable=ignored-metaclass
 
     __metaclass__ = abc.ABCMeta