Skip to content

Commit ae1d02d

Browse files
committed
fix: update serialization to use class docstring or default string
1 parent 8960798 commit ae1d02d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pycardano/serialization.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,7 @@ def json_description(self) -> str:
559559
Returns:
560560
str: The docstring of the object's class.
561561
"""
562-
return "Generated with PyCardano"
562+
return self.__class__.__doc__ or "Generated with PyCardano"
563563

564564
def to_json(self, **kwargs) -> str:
565565
"""

0 commit comments

Comments
 (0)