Skip to content

Commit fb5d37b

Browse files
committed
Fix support for python 3.10 #5662
1 parent 06a6c2d commit fb5d37b

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

src/ifc4d/ifc4d/common.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
import ifcopenshell.api
44
import ifcopenshell.util.date
55
from datetime import datetime, timedelta, date
6-
from typing import Union, Any, TypedDict, NotRequired
6+
from typing import Union, Any, TypedDict
7+
from typing_extensions import NotRequired
78

89

910
class WorkSlot(TypedDict):

src/ifc4d/pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ classifiers = [
1717
]
1818
dependencies = [
1919
"ifcopenshell",
20+
"typing-extensions",
2021
]
2122

2223
[project.urls]

src/ifcclash/ifcclash/ifcclash.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@
2828
import ifcopenshell.geom
2929
import ifcopenshell.util.selector
3030
from logging import Logger
31-
from typing import Optional, Literal, TypedDict, NotRequired
31+
from typing import Literal, TypedDict
32+
from typing_extensions import NotRequired
3233

3334

3435
class ClashSource(TypedDict):

0 commit comments

Comments
 (0)