Skip to content

Commit

Permalink
update __str__
Browse files Browse the repository at this point in the history
  • Loading branch information
viseshrp committed Dec 10, 2024
1 parent 30e04a4 commit a101809
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ansys/dynamicreporting/core/serverless/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion src/ansys/dynamicreporting/core/serverless/template.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit a101809

Please sign in to comment.