pytype: ignore abc.ABCMeta metaclasses that don't work on py3
authorAnton Shestakov <av6@dwimlabs.net>
Mon, 18 Nov 2019 14:33:59 +0700
changeset 4965 191ed83dbc07
parent 4964 bb2042ff6444
child 4982 ba683c5fe932
pytype: ignore abc.ABCMeta metaclasses that don't work on py3 See 70d42e2ad9b4 in hg: 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.
hgext3rd/evolve/genericcaches.py
--- a/hgext3rd/evolve/genericcaches.py	Fri Nov 15 16:04:35 2019 -0800
+++ b/hgext3rd/evolve/genericcaches.py	Mon Nov 18 14:33:59 2019 +0700
@@ -14,7 +14,7 @@
     util,
 )
 
-class incrementalcachebase(object):
+class incrementalcachebase(object):  # pytype: disable=ignored-metaclass
     """base class for incremental cache from append only source
 
     There are multiple append only data source we might want to cache
@@ -133,7 +133,7 @@
         """read the cachekey from bytes"""
         return self._cachekeystruct.unpack(data)
 
-class changelogsourcebase(incrementalcachebase):
+class changelogsourcebase(incrementalcachebase):  # pytype: disable=ignored-metaclass
     """an abstract class for cache sourcing data from the changelog
 
     For this purpose it use a cache key covering changelog content.