def path_new_using_map(
    m: tcod.map.Map, dcost: float = 1.41
) -> tcod.path.AStar:
    """Return a new AStar using the given Map.

    Args:
        m (Map): A Map instance.
        dcost (float): The path-finding cost of diagonal movement.
                       Can be set to 0 to disable diagonal movement.
    Returns:
        AStar: A new AStar instance.
    """
    return tcod.path.AStar(m, dcost)
def path_new_using_map ( m : tcod . map . Map , dcost : float = 1.41 ) -> tcod . path . AStar : return tcod . path . AStar ( m , dcost )
Return a new AStar using the given Map.

    Args:
        m (Map): A Map instance.
        dcost (float): The path-finding cost of diagonal movement.
                       Can be set to 0 to disable diagonal movement.
    Returns:
        AStar: A new AStar instance.