From ec1329443063b803f53a63f1b48e9e04d55f990f Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Thu, 8 May 2025 08:37:41 +0200 Subject: [PATCH] python39 compatibility --- src/ifcopenshell-python/ifcopenshell/util/mvd_info.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ifcopenshell-python/ifcopenshell/util/mvd_info.py b/src/ifcopenshell-python/ifcopenshell/util/mvd_info.py index c7d6562b3a..433827265c 100644 --- a/src/ifcopenshell-python/ifcopenshell/util/mvd_info.py +++ b/src/ifcopenshell-python/ifcopenshell/util/mvd_info.py @@ -6,7 +6,7 @@ try: except ImportError: LARK_AVAILABLE = False -from typing import Callable +from typing import Callable, Union import re if LARK_AVAILABLE: @@ -168,7 +168,7 @@ class MvdInfo: ) @view_definitions.setter - def view_definitions(self, new_value: str | list[str]): + def view_definitions(self, new_value: Union[str, list[str]]): if isinstance(new_value, list): value = ", ".join(new_value) else: @@ -187,7 +187,7 @@ class MvdInfo: ) @comments.setter - def comments(self, new_value: str | list[str]): + def comments(self, new_value: Union[str, list[str]]): if isinstance(new_value, list): value = ", ".join(new_value) else: