from typing import Any
from typing import List
from datetime import datetime


def Datetime(v: Any, fname: str, lazy: List[Any]):
    """Test and pass along ``datetime``, raise for any other."""
    if isinstance(v, datetime):
        return v
    raise TypeError(f'expected type {datetime} for field "{fname}", got {type(v)}')