Fix import of ifcopenshell.util.unit in Python <3.10 #4520

This commit is contained in:
sebphi
2024-04-05 17:38:10 +02:00
committed by Thomas Krijnen
parent 845e229a9c
commit 5d6119e542
@@ -668,7 +668,7 @@ def format_length(
def is_attr_type(
content_type: ifcopenshell.ifcopenshell_wrapper.named_type | ifcopenshell.ifcopenshell_wrapper.type_declaration,
content_type: Union[ifcopenshell.ifcopenshell_wrapper.named_type, ifcopenshell.ifcopenshell_wrapper.type_declaration],
ifc_unit_type_name: str,
) -> Union[ifcopenshell.ifcopenshell_wrapper.type_declaration, None]:
cur_decl = content_type