From fb5d37b04b321ff9b029e0d73f16c33ee44b5948 Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Thu, 31 Oct 2024 18:28:18 +0500 Subject: [PATCH] Fix support for python 3.10 #5662 --- src/ifc4d/ifc4d/common.py | 3 ++- src/ifc4d/pyproject.toml | 1 + src/ifcclash/ifcclash/ifcclash.py | 3 ++- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/ifc4d/ifc4d/common.py b/src/ifc4d/ifc4d/common.py index 896f604a61..e433ba9363 100644 --- a/src/ifc4d/ifc4d/common.py +++ b/src/ifc4d/ifc4d/common.py @@ -3,7 +3,8 @@ import ifcopenshell import ifcopenshell.api import ifcopenshell.util.date from datetime import datetime, timedelta, date -from typing import Union, Any, TypedDict, NotRequired +from typing import Union, Any, TypedDict +from typing_extensions import NotRequired class WorkSlot(TypedDict): diff --git a/src/ifc4d/pyproject.toml b/src/ifc4d/pyproject.toml index 6673061633..6bb2cc9f22 100644 --- a/src/ifc4d/pyproject.toml +++ b/src/ifc4d/pyproject.toml @@ -17,6 +17,7 @@ classifiers = [ ] dependencies = [ "ifcopenshell", + "typing-extensions", ] [project.urls] diff --git a/src/ifcclash/ifcclash/ifcclash.py b/src/ifcclash/ifcclash/ifcclash.py index 54e4dc0129..10beff94fb 100644 --- a/src/ifcclash/ifcclash/ifcclash.py +++ b/src/ifcclash/ifcclash/ifcclash.py @@ -28,7 +28,8 @@ import ifcopenshell import ifcopenshell.geom import ifcopenshell.util.selector from logging import Logger -from typing import Optional, Literal, TypedDict, NotRequired +from typing import Literal, TypedDict +from typing_extensions import NotRequired class ClashSource(TypedDict):