fix some linter warnings

This commit is contained in:
Gilles Boccon-Gibod
2024-10-21 23:58:50 -07:00
parent f169ceaebb
commit a00abd65b3
8 changed files with 14 additions and 0 deletions

View File

@@ -434,6 +434,8 @@ class DataElement:
if size != 1:
raise InvalidArgumentError('boolean must be 1 byte')
size_index = 0
else:
raise RuntimeError("internal error - self.type not supported")
self.bytes = bytes([self.type << 3 | size_index]) + size_bytes + data
return self.bytes