changeset 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 14e374d4c9ee
children 9ce76155e0da
files contrib/testparseutil.py hgext/infinitepush/store.py mercurial/fancyopts.py mercurial/templater.py mercurial/templateutil.py mercurial/util.py
diffstat 6 files changed, 7 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/contrib/testparseutil.py	Wed Nov 06 14:12:53 2019 -0500
+++ b/contrib/testparseutil.py	Wed Nov 06 17:46:26 2019 -0500
@@ -80,7 +80,7 @@
 ####################
 
 
-class embeddedmatcher(object):
+class embeddedmatcher(object):  # pytype: disable=ignored-metaclass
     """Base class to detect embedded code fragments in *.t test script
     """
 
--- a/hgext/infinitepush/store.py	Wed Nov 06 14:12:53 2019 -0500
+++ b/hgext/infinitepush/store.py	Wed Nov 06 17:46:26 2019 -0500
@@ -29,7 +29,7 @@
     pass
 
 
-class abstractbundlestore(object):
+class abstractbundlestore(object):  # pytype: disable=ignored-metaclass
     """Defines the interface for bundle stores.
 
     A bundle store is an entity that stores raw bundle data. It is a simple
--- a/mercurial/fancyopts.py	Wed Nov 06 14:12:53 2019 -0500
+++ b/mercurial/fancyopts.py	Wed Nov 06 17:46:26 2019 -0500
@@ -205,7 +205,7 @@
     return parsedopts, parsedargs
 
 
-class customopt(object):
+class customopt(object):  # pytype: disable=ignored-metaclass
     """Manage defaults and mutations for any type of opt."""
 
     __metaclass__ = abc.ABCMeta
--- a/mercurial/templater.py	Wed Nov 06 14:12:53 2019 -0500
+++ b/mercurial/templater.py	Wed Nov 06 17:46:26 2019 -0500
@@ -611,7 +611,7 @@
     return s[1:-1]
 
 
-class resourcemapper(object):
+class resourcemapper(object):  # pytype: disable=ignored-metaclass
     """Mapper of internal template resources"""
 
     __metaclass__ = abc.ABCMeta
--- 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
--- a/mercurial/util.py	Wed Nov 06 14:12:53 2019 -0500
+++ b/mercurial/util.py	Wed Nov 06 17:46:26 2019 -0500
@@ -1304,7 +1304,7 @@
     """
 
 
-class transactional(object):
+class transactional(object):  # pytype: disable=ignored-metaclass
     """Base class for making a transactional type into a context manager."""
 
     __metaclass__ = abc.ABCMeta