Skip to content

Commit 492bfc3

Browse files
committedSep 13, 2022
Fix doc strings
1 parent 6236ff6 commit 492bfc3

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed
 

‎cstruct/abstract.py

+9-1
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,9 @@ def set_flexible_array_length(self, flexible_array_length: Optional[int]) -> Non
148148
149149
Args:
150150
flexible_array_length: flexible array length
151+
152+
Raises:
153+
CStructException: If flexible array is not present in the structure
151154
"""
152155
if flexible_array_length is not None:
153156
# Search for the flexible array
@@ -185,7 +188,12 @@ def unpack_from(
185188
raise NotImplementedError
186189

187190
def pack(self) -> bytes: # pragma: no cover
188-
"Pack the structure data into bytes"
191+
"""
192+
Pack the structure data into bytes
193+
194+
Returns:
195+
bytes: The packed structure
196+
"""
189197
raise NotImplementedError
190198

191199
def clear(self) -> None:

0 commit comments

Comments
 (0)
Please sign in to comment.