from pathlib import Path
from typing import List


def read_script(script_path: Path) -> List:
    """
    Read Python script

    Parameters
    ----------
    script_path: Path
                Path of the Pythons scripts.
    Returns
    ------
    lines: List
                List of code lines.
    """
    with open(script_path, 'r', encoding='utf-8') as file:
        lines = file.readlines()
    return lines