fix: evaluate str type

This commit is contained in:
aclist committed 2026-02-12 19:09:42 +09:00
1 parent 38883626f5
commit e1d84ec7be
10 files changed
+23 -27

No files matched your search

+1 -1
View File
@@ -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)