From a10180909e0e2959d086054fc12a632fb0cc59fc Mon Sep 17 00:00:00 2001 From: viseshrp Date: Tue, 10 Dec 2024 15:48:56 -0500 Subject: [PATCH] update __str__ --- src/ansys/dynamicreporting/core/serverless/base.py | 2 +- src/ansys/dynamicreporting/core/serverless/template.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ansys/dynamicreporting/core/serverless/base.py b/src/ansys/dynamicreporting/core/serverless/base.py index 4abb6adf..ca04dd72 100644 --- a/src/ansys/dynamicreporting/core/serverless/base.py +++ b/src/ansys/dynamicreporting/core/serverless/base.py @@ -148,7 +148,7 @@ def __repr__(self) -> str: return f"<{self.__class__.__name__}: {self.guid}>" def __str__(self) -> str: - return f"{self.__class__.__name__} object {self.guid}" + return f"<{self.__class__.__name__}: {self.guid}>" def __post_init__(self): self._validate_field_types() diff --git a/src/ansys/dynamicreporting/core/serverless/template.py b/src/ansys/dynamicreporting/core/serverless/template.py index 7a1065fa..bd8ccffb 100644 --- a/src/ansys/dynamicreporting/core/serverless/template.py +++ b/src/ansys/dynamicreporting/core/serverless/template.py @@ -37,7 +37,7 @@ def __post_init__(self): super().__post_init__() def __str__(self) -> str: - return f"{self.__class__.__name__} object {self.name}" + return f"<{self.__class__.__name__}: {self.name}>" @property def type(self):