From 0f33c000fb813096017f3dcf9284bdbcab818c6a Mon Sep 17 00:00:00 2001 From: sebphi <34366521+sebphi@users.noreply.github.com> Date: Fri, 5 Apr 2024 17:38:10 +0200 Subject: [PATCH] Fix import of ifcopenshell.util.unit in Python <3.10 #4520 --- src/ifcopenshell-python/ifcopenshell/util/unit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ifcopenshell-python/ifcopenshell/util/unit.py b/src/ifcopenshell-python/ifcopenshell/util/unit.py index ee1b77d619..eb4dda775e 100644 --- a/src/ifcopenshell-python/ifcopenshell/util/unit.py +++ b/src/ifcopenshell-python/ifcopenshell/util/unit.py @@ -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