diff --git a/src/ifcopenshell-python/ifcopenshell/api/alignment/_sort_nest.py b/src/ifcopenshell-python/ifcopenshell/api/alignment/_sort_nest.py
index eff06eebb2..9f96b73724 100644
--- a/src/ifcopenshell-python/ifcopenshell/api/alignment/_sort_nest.py
+++ b/src/ifcopenshell-python/ifcopenshell/api/alignment/_sort_nest.py
@@ -16,7 +16,7 @@
# You should have received a copy of the GNU Lesser General Public License
# along with IfcOpenShell. If not, see .
-from typing import Callable
+from collections.abc import Callable
from ifcopenshell import entity_instance
diff --git a/src/ifcopenshell-python/ifcopenshell/api/geometry/add_railing_representation.py b/src/ifcopenshell-python/ifcopenshell/api/geometry/add_railing_representation.py
index dea9dba023..3959ed4b87 100644
--- a/src/ifcopenshell-python/ifcopenshell/api/geometry/add_railing_representation.py
+++ b/src/ifcopenshell-python/ifcopenshell/api/geometry/add_railing_representation.py
@@ -16,9 +16,10 @@
# You should have received a copy of the GNU Lesser General Public License
# along with IfcOpenShell. If not, see .
+from collections.abc import Callable
from dataclasses import dataclass, field
from math import cos, pi, radians, sin, tan
-from typing import Callable, Literal, Optional
+from typing import Literal, Optional
import numpy as np
diff --git a/src/ifcopenshell-python/ifcopenshell/api/geometry/clip_solid.py b/src/ifcopenshell-python/ifcopenshell/api/geometry/clip_solid.py
index a83fd4385f..a7f0310f11 100644
--- a/src/ifcopenshell-python/ifcopenshell/api/geometry/clip_solid.py
+++ b/src/ifcopenshell-python/ifcopenshell/api/geometry/clip_solid.py
@@ -19,7 +19,8 @@
from __future__ import annotations
import json
-from typing import Optional, Sequence
+from collections.abc import Sequence
+from typing import Optional
import ifcopenshell.api.pset
import ifcopenshell.util.element
diff --git a/src/ifcopenshell-python/ifcopenshell/api/geometry/clip_solid_bounded.py b/src/ifcopenshell-python/ifcopenshell/api/geometry/clip_solid_bounded.py
index ac2e39c741..6d63651f84 100644
--- a/src/ifcopenshell-python/ifcopenshell/api/geometry/clip_solid_bounded.py
+++ b/src/ifcopenshell-python/ifcopenshell/api/geometry/clip_solid_bounded.py
@@ -19,7 +19,8 @@
from __future__ import annotations
import json
-from typing import Optional, Sequence
+from collections.abc import Sequence
+from typing import Optional
import numpy as np
diff --git a/src/ifcopenshell-python/ifcopenshell/ifcopenshell_wrapper.pyi b/src/ifcopenshell-python/ifcopenshell/ifcopenshell_wrapper.pyi
index 43586e3689..c233254204 100644
--- a/src/ifcopenshell-python/ifcopenshell/ifcopenshell_wrapper.pyi
+++ b/src/ifcopenshell-python/ifcopenshell/ifcopenshell_wrapper.pyi
@@ -16,7 +16,8 @@
# You should have received a copy of the GNU Lesser General Public License
# along with IfcOpenShell. If not, see .
-from typing import Any, Literal, Sequence, Union
+from collections.abc import Sequence
+from typing import Any, Literal, Union
from typing_extensions import Self, Unpack