Skip to content

Commit 655a882

Browse files
style: remove unneeded Any annotation
1 parent 89c731d commit 655a882

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rosys/vision/calibration.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import logging
44
from dataclasses import dataclass, field
55
from enum import Enum
6-
from typing import Any, TypeAlias, cast, overload
6+
from typing import TypeAlias, cast, overload
77

88
import cv2
99
import numpy as np
@@ -436,7 +436,7 @@ def distort_points(self, image_points: Point | list[Point] | FloatArray, *, crop
436436

437437
if not isinstance(image_points, np.ndarray):
438438
image_points_array = np.array([p.tuple for p in image_points], dtype=np.float32)
439-
distorted = cast(Any, self.distort_points(image_points_array, crop=crop))
439+
distorted = self.distort_points(image_points_array, crop=crop)
440440
return [Point(x=p[0], y=p[1]) for p in distorted]
441441

442442
if image_points.dtype not in [np.float32, np.float64]:

0 commit comments

Comments
 (0)