Skip to content

Commit

Permalink
fix: rename type variable (#28)
Browse files Browse the repository at this point in the history
Signed-off-by: ktro2828 <[email protected]>
  • Loading branch information
ktro2828 authored Nov 12, 2024
1 parent 042d7bf commit ee5f6c9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions t4_devkit/filtering/compose.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
if TYPE_CHECKING:
from t4_devkit.dataclass import BoxType, TransformBuffer

from .functional import FilterLike
from .functional import BoxFilterFunction


class BoxFilter:
Expand All @@ -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),
Expand Down
4 changes: 2 additions & 2 deletions t4_devkit/filtering/functional.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"FilterByUUID",
"FilterByDistance",
"FilterByPosition",
"BoxFilterLike",
"BoxFilterFunction",
]


Expand Down Expand Up @@ -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)

0 comments on commit ee5f6c9

Please sign in to comment.