From a5801e439f9b6edc6160eb67d4f23531778d5ace Mon Sep 17 00:00:00 2001 From: Andrej Date: Thu, 29 May 2025 17:03:16 +0500 Subject: [PATCH] edit_attributes - fix Python 3.9 support (39fd9ce) --- .../ifcopenshell/api/attribute/edit_attributes.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/ifcopenshell-python/ifcopenshell/api/attribute/edit_attributes.py b/src/ifcopenshell-python/ifcopenshell/api/attribute/edit_attributes.py index ff0e2b11b7..10273cb1fc 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/attribute/edit_attributes.py +++ b/src/ifcopenshell-python/ifcopenshell/api/attribute/edit_attributes.py @@ -16,10 +16,15 @@ # You should have received a copy of the GNU Lesser General Public License # along with IfcOpenShell. If not, see . +import sys import ifcopenshell.api.owner import ifcopenshell.util.element from typing import Any, Union -from types import EllipsisType + +if sys.version_info >= (3, 10): + from types import EllipsisType +else: + EllipsisType = type(...) def edit_attributes(file: ifcopenshell.file, product: ifcopenshell.entity_instance, attributes: dict[str, Any]) -> None: