mirror of
https://github.com/graphql-python/graphene.git
synced 2025-06-06 22:53:05 +03:00
chore: code style
This commit is contained in:
parent
1406b8f960
commit
a90852a7af
|
@ -56,7 +56,7 @@ class Union(UnmountedType, BaseType):
|
||||||
isinstance(types, (list, tuple)) and len(types) > 0
|
isinstance(types, (list, tuple)) and len(types) > 0
|
||||||
), f"Must provide types for Union {cls.__name__}."
|
), f"Must provide types for Union {cls.__name__}."
|
||||||
|
|
||||||
if _meta is None:
|
if not _meta:
|
||||||
_meta = UnionOptions(cls)
|
_meta = UnionOptions(cls)
|
||||||
|
|
||||||
_meta.types = types
|
_meta.types = types
|
||||||
|
|
Loading…
Reference in New Issue
Block a user