mirror of
https://github.com/graphql-python/graphene.git
synced 2024-11-25 02:53:54 +03:00
Don't delete the Meta class
This commit is contained in:
parent
431e93cd68
commit
27a9a64bbb
|
@ -37,7 +37,6 @@ class SubclassWithMeta(six.with_metaclass(SubclassWithMeta_Meta)):
|
|||
_Meta
|
||||
)
|
||||
)
|
||||
delattr(cls, "Meta")
|
||||
options = dict(meta_options, **_meta_props)
|
||||
|
||||
abstract = options.pop("abstract", False)
|
||||
|
@ -46,10 +45,10 @@ class SubclassWithMeta(six.with_metaclass(SubclassWithMeta_Meta)):
|
|||
"Abstract types can only contain the abstract attribute. "
|
||||
"Received: abstract, {option_keys}"
|
||||
).format(option_keys=", ".join(options.keys()))
|
||||
else:
|
||||
super_class = super(cls, cls)
|
||||
if hasattr(super_class, "__init_subclass_with_meta__"):
|
||||
super_class.__init_subclass_with_meta__(**options)
|
||||
|
||||
super_class = super(cls, cls)
|
||||
if hasattr(super_class, "__init_subclass_with_meta__"):
|
||||
super_class.__init_subclass_with_meta__(**options)
|
||||
|
||||
@classmethod
|
||||
def __init_subclass_with_meta__(cls, **meta_options):
|
||||
|
|
Loading…
Reference in New Issue
Block a user