comparison mercurial/templateutil.py @ 43474: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
comparison
equal deleted inserted replaced
43473:14e374d4c9ee 43474:70d42e2ad9b4
29 29
30 class TemplateNotFound(error.Abort): 30 class TemplateNotFound(error.Abort):
31 pass 31 pass
32 32
33 33
34 class wrapped(object): 34 class wrapped(object): # pytype: disable=ignored-metaclass
35 """Object requiring extra conversion prior to displaying or processing 35 """Object requiring extra conversion prior to displaying or processing
36 as value 36 as value
37 37
38 Use unwrapvalue() or unwrapastype() to obtain the inner object. 38 Use unwrapvalue() or unwrapastype() to obtain the inner object.
39 """ 39 """
106 106
107 A returned value must be serializable by templaterfilters.json(). 107 A returned value must be serializable by templaterfilters.json().
108 """ 108 """
109 109
110 110
111 class mappable(object): 111 class mappable(object): # pytype: disable=ignored-metaclass
112 """Object which can be converted to a single template mapping""" 112 """Object which can be converted to a single template mapping"""
113 113
114 __metaclass__ = abc.ABCMeta 114 __metaclass__ = abc.ABCMeta
115 115
116 def itermaps(self, context): 116 def itermaps(self, context):