from typing import List, Optional def is_path_match(path: str, *, match: Optional[List[str]]) -> bool: if match is None: return False return path in match