from typing import Tuple
from typing import Any


def _calc_mid(p1: Tuple[Any, Any], p2: Tuple[Any, Any]):
    """
    Calculate mid point of two points
    """
    return (p1[0] + p2[0]) / 2, (p1[1] + p2[1]) / 2