from typing import Any
from typing import List


def is_generic_list(annotation: Any):
    """Checks if ANNOTATION is List[...]."""
    # python<3.7 reports List in __origin__, while python>=3.7 reports list
    return getattr(annotation, '__origin__', None) in (List, list)