from pathlib import Path


def read_source_code(filepath: Path) -> str:
    """Reads python source code and returns it as a string

    Args:
        filepath: path to file

    Returns:
        source: a content of the file returned as single string
    """
    with open(str(filepath), "r") as file:
        source_code = "".join(file.readlines())
    return source_code