fix Python 3.9 issue

This commit is contained in:
jonschz 2024-05-30 20:48:18 +02:00
parent bdce6575cd
commit 24275b460b

View File

@ -153,7 +153,7 @@ def _import_union(self, type_pdb: dict[str, Any]) -> DataType:
union_type = get_ghidra_type(self.api, type_pdb["name"])
assert (
union_type.getLength() == type_pdb["size"]
), f"Wrong size of existing union type '{type_pdb['name']}': expected {type_pdb["size"]}, got {union_type.getLength()}"
), f"Wrong size of existing union type '{type_pdb['name']}': expected {type_pdb['size']}, got {union_type.getLength()}"
return union_type
except TypeNotFoundInGhidraError as e:
# We have so few instances, it is not worth implementing this