From e8f409d73491e7aed51ed98bae29aa9c6298babb Mon Sep 17 00:00:00 2001 From: Dominik Gresch Date: Thu, 19 Jun 2025 16:13:52 +0200 Subject: [PATCH] Fix some 3D coordinate type hints --- .../acp/core/_tree_objects/cylindrical_selection_rule.py | 4 ++-- src/ansys/acp/core/_tree_objects/parallel_selection_rule.py | 4 ++-- src/ansys/acp/core/_tree_objects/spherical_selection_rule.py | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/ansys/acp/core/_tree_objects/cylindrical_selection_rule.py b/src/ansys/acp/core/_tree_objects/cylindrical_selection_rule.py index f6bedfd7a8..84cf8abf60 100644 --- a/src/ansys/acp/core/_tree_objects/cylindrical_selection_rule.py +++ b/src/ansys/acp/core/_tree_objects/cylindrical_selection_rule.py @@ -112,8 +112,8 @@ def __init__( name: str = "CylindricalSelectionrule", use_global_coordinate_system: bool = True, rosette: Rosette | None = None, - origin: tuple[float, ...] = (0.0, 0.0, 0.0), - direction: tuple[float, ...] = (0.0, 0.0, 1.0), + origin: tuple[float, float, float] = (0.0, 0.0, 0.0), + direction: tuple[float, float, float] = (0.0, 0.0, 1.0), radius: float = 0.0, relative_rule: bool = False, include_rule: bool = True, diff --git a/src/ansys/acp/core/_tree_objects/parallel_selection_rule.py b/src/ansys/acp/core/_tree_objects/parallel_selection_rule.py index ca9d73db1c..1af0288815 100644 --- a/src/ansys/acp/core/_tree_objects/parallel_selection_rule.py +++ b/src/ansys/acp/core/_tree_objects/parallel_selection_rule.py @@ -114,8 +114,8 @@ def __init__( name: str = "ParallelSelectionrule", use_global_coordinate_system: bool = True, rosette: Rosette | None = None, - origin: tuple[float, ...] = (0.0, 0.0, 0.0), - direction: tuple[float, ...] = (1.0, 0.0, 0.0), + origin: tuple[float, float, float] = (0.0, 0.0, 0.0), + direction: tuple[float, float, float] = (1.0, 0.0, 0.0), lower_limit: float = 0.0, upper_limit: float = 0.0, relative_rule: bool = False, diff --git a/src/ansys/acp/core/_tree_objects/spherical_selection_rule.py b/src/ansys/acp/core/_tree_objects/spherical_selection_rule.py index a1e35f2921..03f587f609 100644 --- a/src/ansys/acp/core/_tree_objects/spherical_selection_rule.py +++ b/src/ansys/acp/core/_tree_objects/spherical_selection_rule.py @@ -110,7 +110,7 @@ def __init__( name: str = "SphericalSelectionrule", use_global_coordinate_system: bool = True, rosette: Rosette | None = None, - origin: tuple[float, ...] = (0.0, 0.0, 0.0), + origin: tuple[float, float, float] = (0.0, 0.0, 0.0), radius: float = 0.0, relative_rule: bool = False, include_rule: bool = True,