Skip to content

Commit e028a7d

Browse files
committed
Override Union meta
1 parent ccae736 commit e028a7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graphene/types/union.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def __init_subclass_with_meta__(cls, types=None, **options):
5656
isinstance(types, (list, tuple)) and len(types) > 0
5757
), f"Must provide types for Union {cls.__name__}."
5858

59-
_meta = UnionOptions(cls)
59+
_meta = options.pop("_meta", UnionOptions(cls))
6060
_meta.types = types
6161
super(Union, cls).__init_subclass_with_meta__(_meta=_meta, **options)
6262

0 commit comments

Comments
 (0)