mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-23 21:58:46 +00:00
Fix import of ifcopenshell.util.unit in Python <3.10 #4520
This commit is contained in:
@@ -668,7 +668,7 @@ def format_length(
|
|||||||
|
|
||||||
|
|
||||||
def is_attr_type(
|
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,
|
ifc_unit_type_name: str,
|
||||||
) -> Union[ifcopenshell.ifcopenshell_wrapper.type_declaration, None]:
|
) -> Union[ifcopenshell.ifcopenshell_wrapper.type_declaration, None]:
|
||||||
cur_decl = content_type
|
cur_decl = content_type
|
||||||
|
|||||||
Reference in New Issue
Block a user