mirror of
https://github.com/aclist/dztui.git
synced 2026-10-30 06:32:53 +01:00
fix: evaluate str type
This commit is contained in:
1 parent
38883626f5
commit
e1d84ec7be
10 files changed
+23
-27
No files matched your search
+1
-1
@@ -72,7 +72,7 @@ class PackedData:
|
||||
def unpack(cls, data: BinaryIO):
|
||||
r = []
|
||||
for key, value in cls.__annotations__.items():
|
||||
if type(value) is str:
|
||||
if value is str:
|
||||
f = data.read(8).rstrip(b"\x00\x00").decode()
|
||||
else:
|
||||
fmt = endian + (value.fmt)
|
||||
|
||||
Reference in new issue
Block a user