mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-11 10:06:47 +00:00
black
This commit is contained in:
@@ -639,9 +639,7 @@ def set_element_value(
|
||||
except:
|
||||
# Try to cast
|
||||
data_type = ifcopenshell.util.attribute.get_primitive_type(
|
||||
element.declaration()
|
||||
.as_entity()
|
||||
.attribute_by_index(element.get_argument_index(key))
|
||||
element.declaration().as_entity().attribute_by_index(element.get_argument_index(key))
|
||||
)
|
||||
if data_type == "string":
|
||||
value = str(value)
|
||||
|
||||
Reference in New Issue
Block a user