from pathlib import Path
from typing import List


def path_does_not_contain(path: Path, names: List[str]) -> bool:
    """Check if path does not contain a list of names."""
    for name in names:
        if name in str(path):
            return False
    return True