Accordion style merge issue fix (#2446)

This commit is contained in:
Elijah Ahianyo 2024-01-26 22:12:18 +00:00 committed by GitHub
parent a2e0807dc1
commit aad009e5df
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -436,12 +436,9 @@ class Var:
Returns:
The merged var.
Raises:
ValueError: If the other value to be merged is None.
"""
if other is None:
raise ValueError("The value to be merged cannot be None.")
return self._replace()
if not isinstance(other, Var):
other = Var.create(other)
return self._replace(