comparison mercurial/util.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 8ff1ecfadcd1
children 5d40317d42b7
comparison
equal deleted inserted replaced
43473:14e374d4c9ee 43474:70d42e2ad9b4
1302 1302
1303 Be sure to call d = d.preparewrite() before writing to d. 1303 Be sure to call d = d.preparewrite() before writing to d.
1304 """ 1304 """
1305 1305
1306 1306
1307 class transactional(object): 1307 class transactional(object): # pytype: disable=ignored-metaclass
1308 """Base class for making a transactional type into a context manager.""" 1308 """Base class for making a transactional type into a context manager."""
1309 1309
1310 __metaclass__ = abc.ABCMeta 1310 __metaclass__ = abc.ABCMeta
1311 1311
1312 @abc.abstractmethod 1312 @abc.abstractmethod