mirror of
https://github.com/graphql-python/graphene.git
synced 2025-04-27 04:53:40 +03:00
Override Union meta
This commit is contained in:
parent
ccae7364e5
commit
e028a7da99
|
@ -56,7 +56,7 @@ class Union(UnmountedType, BaseType):
|
|||
isinstance(types, (list, tuple)) and len(types) > 0
|
||||
), f"Must provide types for Union {cls.__name__}."
|
||||
|
||||
_meta = UnionOptions(cls)
|
||||
_meta = options.pop("_meta", UnionOptions(cls))
|
||||
_meta.types = types
|
||||
super(Union, cls).__init_subclass_with_meta__(_meta=_meta, **options)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user