Mercurial > public > mercurial-scm > hg-stable
diff mercurial/templateutil.py @ 43522:70d42e2ad9b4
pytype: don't warn us about ignored-on-py3 metaclasses
We can remove this when we're Python 3-only, but for now it's just too
awkward to deal with and it's harmless.
Differential Revision: https://phab.mercurial-scm.org/D7272
author | Augie Fackler <augie@google.com> |
---|---|
date | Wed, 06 Nov 2019 17:46:26 -0500 |
parents | 3e57809d3251 |
children | fc1fa3a07af6 |
line wrap: on
line diff
--- a/mercurial/templateutil.py Wed Nov 06 14:12:53 2019 -0500 +++ b/mercurial/templateutil.py Wed Nov 06 17:46:26 2019 -0500 @@ -31,7 +31,7 @@ pass -class wrapped(object): +class wrapped(object): # pytype: disable=ignored-metaclass """Object requiring extra conversion prior to displaying or processing as value @@ -108,7 +108,7 @@ """ -class mappable(object): +class mappable(object): # pytype: disable=ignored-metaclass """Object which can be converted to a single template mapping""" __metaclass__ = abc.ABCMeta