Skip to content
This repository was archived by the owner on Jan 17, 2023. It is now read-only.

Commit d7d0c35

Browse files
committed
Fix type incompatibility
Use __bytes__ instead of __string__ to make GUID compatible with bytes()
1 parent 30873ef commit d7d0c35

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

nordicsemi/lister/windows/structures.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,8 @@ def __init__(self, bytes):
123123
self._internal = bytes
124124
def __str__(self):
125125
return self._internal.raw
126+
def __bytes__(self):
127+
return self._internal.raw
126128

127129
DeviceInfoData.size = DeviceInfoData.cbSize
128130
DeviceInfoData.dev_inst = DeviceInfoData.DevInst

0 commit comments

Comments
 (0)