Fix build following mypy support for metaclasses (#952)

Mypy now supports metaclasses in Python 2, see python/mypy#2830
so that now __metaclass__ attribute has special treatment.

This PR makes small changes to fix the build (also most PRs are red because of this)
This commit is contained in:
Ivan Levkivskyi
2017-02-22 13:39:57 +01:00
committed by Jukka Lehtosalo
parent e3fb935ca4
commit 10c5e0cb44
2 changed files with 2 additions and 2 deletions

View File

@@ -13,7 +13,7 @@ class DescriptorMetaclass(type):
def __instancecheck__(cls, obj): ...
class DescriptorBase:
__metaclass__ = ... # type: Any
__metaclass__ = DescriptorMetaclass
has_options = ... # type: Any
def __init__(self, options, options_class_name) -> None: ...
def GetOptions(self): ...

View File

@@ -40,7 +40,7 @@ class YAMLObjectMetaclass(type):
def __init__(cls, name, bases, kwds) -> None: ...
class YAMLObject:
__metaclass__ = ... # type: Any
__metaclass__ = YAMLObjectMetaclass
yaml_loader = ... # type: Any
yaml_dumper = ... # type: Any
yaml_tag = ... # type: Any