distance¶ distance(first_point: Point, second_point: Point) → float[source]¶ Calculate the Manhattan distance between two points. Parameters: first_point (Point) – First point to compare. second_point (Point) – Second point to compare. Returns: Manhattan distance between the points. Return type: float Raises: TypeError – If either point has an invalid type.