From a8268e8323718866452cdc5a5cf0f7b5c9e60b44 Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Wed, 9 Jul 2025 13:49:47 +0500 Subject: [PATCH] Replace deprecated typing.Sequence (40f92d15c) --- .../ifcopenshell/api/alignment/_add_segment_to_layout.py | 2 +- .../ifcopenshell/api/alignment/_get_mapped_segments.py | 2 +- .../api/alignment/_get_segment_start_point_label.py | 2 +- .../ifcopenshell/api/alignment/create_from_csv.py | 2 +- .../ifcopenshell/api/alignment/get_alignment.py | 2 +- .../ifcopenshell/api/alignment/get_layout_segments.py | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/ifcopenshell-python/ifcopenshell/api/alignment/_add_segment_to_layout.py b/src/ifcopenshell-python/ifcopenshell/api/alignment/_add_segment_to_layout.py index 4ef4544e9a..7d103743d8 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/alignment/_add_segment_to_layout.py +++ b/src/ifcopenshell-python/ifcopenshell/api/alignment/_add_segment_to_layout.py @@ -23,7 +23,7 @@ from ifcopenshell import ifcopenshell_wrapper import numpy as np import math from ifcopenshell import entity_instance -from typing import Sequence +from collections.abc import Sequence from ifcopenshell.api.alignment._add_segment_to_curve import _add_segment_to_curve from ifcopenshell.api.alignment._get_mapped_segments import _get_mapped_segments diff --git a/src/ifcopenshell-python/ifcopenshell/api/alignment/_get_mapped_segments.py b/src/ifcopenshell-python/ifcopenshell/api/alignment/_get_mapped_segments.py index f155e6b344..3f413a53e7 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/alignment/_get_mapped_segments.py +++ b/src/ifcopenshell-python/ifcopenshell/api/alignment/_get_mapped_segments.py @@ -19,7 +19,7 @@ import ifcopenshell import ifcopenshell.api.alignment from ifcopenshell import entity_instance -from typing import Sequence +from collections.abc import Sequence def __get_curve_segment_count(segment: entity_instance) -> int: diff --git a/src/ifcopenshell-python/ifcopenshell/api/alignment/_get_segment_start_point_label.py b/src/ifcopenshell-python/ifcopenshell/api/alignment/_get_segment_start_point_label.py index c78c1b413f..b1bddfb2e6 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/alignment/_get_segment_start_point_label.py +++ b/src/ifcopenshell-python/ifcopenshell/api/alignment/_get_segment_start_point_label.py @@ -18,7 +18,7 @@ import ifcopenshell from ifcopenshell import entity_instance -from typing import Sequence +from collections.abc import Sequence _horizontal_callback = None diff --git a/src/ifcopenshell-python/ifcopenshell/api/alignment/create_from_csv.py b/src/ifcopenshell-python/ifcopenshell/api/alignment/create_from_csv.py index 8a96587033..4125f16bfc 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/alignment/create_from_csv.py +++ b/src/ifcopenshell-python/ifcopenshell/api/alignment/create_from_csv.py @@ -22,7 +22,7 @@ import ifcopenshell.api from ifcopenshell import entity_instance from ifcopenshell.api.alignment import get_axis_subcontext -from typing import Sequence +from collections.abc import Sequence import csv diff --git a/src/ifcopenshell-python/ifcopenshell/api/alignment/get_alignment.py b/src/ifcopenshell-python/ifcopenshell/api/alignment/get_alignment.py index bc5214506b..21dc9f9d2b 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/alignment/get_alignment.py +++ b/src/ifcopenshell-python/ifcopenshell/api/alignment/get_alignment.py @@ -19,7 +19,7 @@ import ifcopenshell import ifcopenshell.util from ifcopenshell import entity_instance -from typing import Sequence +from collections.abc import Sequence import ifcopenshell.util.representation diff --git a/src/ifcopenshell-python/ifcopenshell/api/alignment/get_layout_segments.py b/src/ifcopenshell-python/ifcopenshell/api/alignment/get_layout_segments.py index 27f58ef543..cae8079f53 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/alignment/get_layout_segments.py +++ b/src/ifcopenshell-python/ifcopenshell/api/alignment/get_layout_segments.py @@ -19,7 +19,7 @@ import ifcopenshell import ifcopenshell.util from ifcopenshell import entity_instance -from typing import Sequence +from collections.abc import Sequence import ifcopenshell.util.element