from typing import Sequence
from typing import Pattern
from typing import Optional
from typing import Match


def _regex_list_match(line: str, regex_list: Sequence[Pattern]) -> Optional[Match]:
    """
    Whether or not the line is matched by one or more regular expressions in
    the list.

    Args:
        line (str): The line to check for matches.
        regex_list (list[_sre_SRE_Pattern]): A list of compiled regular
            expressions to match against.

    Returns:
        the match, or None
    """
    for regex in regex_list:
        m = regex.match(line)
        if m:
            return m
    return None