Skip to content

Commit a4fa6fb

Browse files
committed
add __repr__ method to FieldType
1 parent c5cf01a commit a4fa6fb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cstruct/field.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,3 +220,6 @@ def align_filed_offset(self) -> None:
220220
def copy(self) -> "FieldType":
221221
"Return a shallow copy of this FieldType"
222222
return copy.copy(self)
223+
224+
def __repr__(self) -> str: # pragma: no cover
225+
return repr(self.__dict__)

0 commit comments

Comments
 (0)