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)