from typing import List


def _get_encoded_list(items: List[str]) -> str:
    """
    Return Python list encoded in a string

    """
    list_contents = ''
    if items:
        list_contents = ', '.join(["'{}'".format(item) for item in items])

    return '[{}]'.format(list_contents)