edit_attributes - fix Python 3.9 support (39fd9ce)

This commit is contained in:
Andrej
2025-05-29 17:03:16 +05:00
parent 4e65c33bae
commit a5801e439f
@@ -16,10 +16,15 @@
# You should have received a copy of the GNU Lesser General Public License
# along with IfcOpenShell. If not, see <http://www.gnu.org/licenses/>.
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: