from typing import Type
from typing import Any
import typing


def _is_list(field: Type[Any]) -> bool:
    """Returns True when the given type annotation is list[...]."""
    return typing.get_origin(field) is list