Fix Python <3.10 support #6141

This commit is contained in:
Andrej730
2025-02-11 16:50:00 +05:00
parent 2f4c3de92d
commit 57d7d83ebb
2 changed files with 3 additions and 2 deletions
@@ -18,12 +18,13 @@
import ifcopenshell.api.geometry
import ifcopenshell.util.representation
from typing import Union
def validate_type(
file: ifcopenshell.file,
representation: ifcopenshell.entity_instance,
preferred_item: ifcopenshell.entity_instance | None = None,
preferred_item: Union[ifcopenshell.entity_instance, None] = None,
) -> bool:
"""Validates the RepresentationType of an IfcShapeRepresentation