from typing import Optional


def greeting(name: Optional[str] = None) -> str:
    """Says hello given an optional name.

    NOTE: `Optional` is just a convenience. It's equivalent to
    `Union[str, None]`.

    """
    if name:
        return f"Hello {name}!"
    else:
        return "Hello you!"