mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 21:46:42 +08:00
fix __metaclass_ references (#2402)
This commit is contained in:
committed by
Rebecca Chen
parent
19708fac61
commit
9d62d6d5c5
@@ -8,8 +8,7 @@ class TypeTransformationError(Error): ...
|
||||
class DescriptorMetaclass(type):
|
||||
def __instancecheck__(cls, obj): ...
|
||||
|
||||
class DescriptorBase:
|
||||
__metaclass__ = DescriptorMetaclass
|
||||
class DescriptorBase(metaclass=DescriptorMetaclass):
|
||||
has_options = ... # type: Any
|
||||
def __init__(self, options, options_class_name) -> None: ...
|
||||
def GetOptions(self): ...
|
||||
|
||||
3
third_party/2and3/yaml/__init__.pyi
vendored
3
third_party/2and3/yaml/__init__.pyi
vendored
@@ -36,8 +36,7 @@ def add_multi_representer(data_type, multi_representer, Dumper=...): ...
|
||||
class YAMLObjectMetaclass(type):
|
||||
def __init__(cls, name, bases, kwds) -> None: ...
|
||||
|
||||
class YAMLObject:
|
||||
__metaclass__ = YAMLObjectMetaclass
|
||||
class YAMLObject(metaclass=YAMLObjectMetaclass):
|
||||
yaml_loader = ... # type: Any
|
||||
yaml_dumper = ... # type: Any
|
||||
yaml_tag = ... # type: Any
|
||||
|
||||
Reference in New Issue
Block a user