We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ccae736 commit e028a7dCopy full SHA for e028a7d
graphene/types/union.py
@@ -56,7 +56,7 @@ def __init_subclass_with_meta__(cls, types=None, **options):
56
isinstance(types, (list, tuple)) and len(types) > 0
57
), f"Must provide types for Union {cls.__name__}."
58
59
- _meta = UnionOptions(cls)
+ _meta = options.pop("_meta", UnionOptions(cls))
60
_meta.types = types
61
super(Union, cls).__init_subclass_with_meta__(_meta=_meta, **options)
62
0 commit comments