chore: code style

This commit is contained in:
Erik Wrede 2024-11-09 17:26:50 +01:00 committed by GitHub
parent 1406b8f960
commit a90852a7af
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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