From a90852a7af87673dd0385de3721b9fa82e3bcf10 Mon Sep 17 00:00:00 2001 From: Erik Wrede Date: Sat, 9 Nov 2024 17:26:50 +0100 Subject: [PATCH] chore: code style --- graphene/types/union.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/graphene/types/union.py b/graphene/types/union.py index 809ed01b..3d10418e 100644 --- a/graphene/types/union.py +++ b/graphene/types/union.py @@ -56,7 +56,7 @@ class Union(UnmountedType, BaseType): isinstance(types, (list, tuple)) and len(types) > 0 ), f"Must provide types for Union {cls.__name__}." - if _meta is None: + if not _meta: _meta = UnionOptions(cls) _meta.types = types