ty: detect unresolved references

This commit is contained in:
Andrej730
2026-07-18 20:35:10 +05:00
parent f744753726
commit b35f99e63f
99 changed files with 401 additions and 84 deletions
@@ -71,11 +71,13 @@ class Patcher:
# Sort elements by GlobalId to ensure consistent order
elements_sorted = sorted(elements, key=lambda x: x.GlobalId)
element_quantities = None
for element in elements_sorted:
quantities = self.get_element_quantities(element)
if quantities:
element_quantities = quantities
break
assert element_quantities is not None
if not element_quantities:
continue
+1 -1
View File
@@ -521,7 +521,7 @@ class Patcher(ifcpatch.BasePatcher):
data_type = "JSON"
json_attrs.append(i)
else:
print("Possibly not implemented attribute data type:", attribute, primitive)
assert False, f"{attribute}, {primitive}"
if not self.is_strict or derived[i]:
optional = "DEFAULT NULL"
else: