mirror of
https://github.com/graphql-python/graphene.git
synced 2024-11-26 03:23:55 +03:00
Include extra data in Meta in _meta
This commit is contained in:
parent
355601bd5c
commit
bc73823084
|
@ -43,6 +43,7 @@ class BaseType(SubclassWithMeta):
|
||||||
return
|
return
|
||||||
_meta.name = name or cls.__name__
|
_meta.name = name or cls.__name__
|
||||||
_meta.description = description or trim_docstring(cls.__doc__)
|
_meta.description = description or trim_docstring(cls.__doc__)
|
||||||
|
_meta.extra = _kwargs
|
||||||
_meta.freeze()
|
_meta.freeze()
|
||||||
cls._meta = _meta
|
cls._meta = _meta
|
||||||
super(BaseType, cls).__init_subclass_with_meta__()
|
super(BaseType, cls).__init_subclass_with_meta__()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user