From ee5f6c96e35e68854f99a673f6fa89e91f4007d4 Mon Sep 17 00:00:00 2001 From: Kotaro Uetake <60615504+ktro2828@users.noreply.github.com> Date: Tue, 12 Nov 2024 21:09:16 +0900 Subject: [PATCH] fix: rename type variable (#28) Signed-off-by: ktro2828 --- t4_devkit/filtering/compose.py | 4 ++-- t4_devkit/filtering/functional.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/t4_devkit/filtering/compose.py b/t4_devkit/filtering/compose.py index 29bd923..18c3817 100644 --- a/t4_devkit/filtering/compose.py +++ b/t4_devkit/filtering/compose.py @@ -15,7 +15,7 @@ if TYPE_CHECKING: from t4_devkit.dataclass import BoxType, TransformBuffer - from .functional import FilterLike + from .functional import BoxFilterFunction class BoxFilter: @@ -28,7 +28,7 @@ def __init__(self, params: FilterParams, tf_buffer: TransformBuffer) -> None: params (FilterParams): Filtering parameters. tf_buffer (TransformBuffer): Transformation buffer. """ - self.filters: list[FilterLike] = [ + self.filters: list[BoxFilterFunction] = [ FilterByLabel.from_params(params), FilterByUUID.from_params(params), FilterByDistance.from_params(params), diff --git a/t4_devkit/filtering/functional.py b/t4_devkit/filtering/functional.py index 0ea5311..86ebca9 100644 --- a/t4_devkit/filtering/functional.py +++ b/t4_devkit/filtering/functional.py @@ -19,7 +19,7 @@ "FilterByUUID", "FilterByDistance", "FilterByPosition", - "BoxFilterLike", + "BoxFilterFunction", ] @@ -236,4 +236,4 @@ def __call__(self, box: BoxType, _tf_matrix: HomogeneousMatrix | None = None) -> return self.min_num_points <= box.num_points -BoxFilterLike = TypeVar("BoxFilterLike", bound=BaseBoxFilter) +BoxFilterFunction = TypeVar("BoxFilterFunction", bound=BaseBoxFilter)