Skip to content

Commit cc36ca3

Browse files
committed
fix: remove unneeded override in struct_impl
1 parent e10d19c commit cc36ca3

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

libdestruct/common/struct/struct_impl.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,10 +112,6 @@ def to_str(self: struct_impl, indent: int = 0) -> str:
112112
{members}
113113
{' ' * indent}}}"""
114114

115-
def __str__(self: struct_impl) -> str:
116-
"""Return a string representation of the struct."""
117-
return self.to_str()
118-
119115
def __repr__(self: struct_impl) -> str:
120116
"""Return a string representation of the struct."""
121117
members = ",\n".join([f"{name}: {member}" for name, member in self._members.items()])

0 commit comments

Comments
 (0)