Include extra data in Meta in _meta

This commit is contained in:
adrianschneider 2021-04-21 12:37:46 +02:00 committed by Erik Wrede
parent 355601bd5c
commit bc73823084

View File

@ -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__()