Skip to content

Commit

Permalink
fix: Call to untyped function "norm" in typed context
Browse files Browse the repository at this point in the history
  • Loading branch information
engnadeau committed Aug 23, 2022
1 parent b933c06 commit 7a80d5a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pybotics/optimization.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,9 @@ def compute_relative_error(
actual_position_b = position_from_matrix(pose_b)

actual_distance = actual_position_a - actual_position_b
actual_distance = np.linalg.norm(actual_distance)
actual_distance = np.linalg.norm(actual_distance) # type: ignore

error = float(np.linalg.norm(distance - actual_distance))
error = float(np.linalg.norm(distance - actual_distance)) # type: ignore

return error

Expand Down

0 comments on commit 7a80d5a

Please sign in to comment.