Skip to content

Commit c68c677

Browse files
Add minor docs
1 parent ab0d2c9 commit c68c677

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

pydsdl/_serializable/_primitive.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,10 @@ def __str__(self) -> str:
171171

172172

173173
class ByteType(UnsignedIntegerType):
174+
"""
175+
This type is used as the array element type for byte strings.
176+
"""
177+
174178
def __init__(self) -> None:
175179
super().__init__(bit_length=PrimitiveType.BITS_IN_BYTE, cast_mode=PrimitiveType.CastMode.TRUNCATED)
176180

@@ -186,6 +190,10 @@ def __str__(self) -> str:
186190

187191

188192
class UTF8Type(UnsignedIntegerType):
193+
"""
194+
This type is used as the array element type for UTF-8 strings.
195+
"""
196+
189197
def __init__(self) -> None:
190198
super().__init__(bit_length=8, cast_mode=PrimitiveType.CastMode.TRUNCATED)
191199

0 commit comments

Comments
 (0)