diff --git a/src/zenkit/daedalus_script.py b/src/zenkit/daedalus_script.py index 68404f4..332f1a2 100644 --- a/src/zenkit/daedalus_script.py +++ b/src/zenkit/daedalus_script.py @@ -217,6 +217,10 @@ def value(self) -> DaedalusSymbolValue: def __repr__(self) -> str: return f"<{self.__class__.__name__} handle={self._handle} name={self.name!r} type={self.type.name}>" + def __str__(self) -> str: + value = self.value + return value.__str__() if value is not None else self.__repr__() + class DaedalusInstruction(Structure): _fields_: ClassVar[tuple[str, Any]] = [