from typing import Any


def is_typing(cls: Any) -> bool:
    """
        Checks if this type is from typing module
        (because there is no base class to check with isinstance(...))

        >>> import typing
        >>> is_typing(typing.Optional[str])
        True
        >>> is_typing(str)
        False

    :param cls: Any Type
    :return: True if this type is typing and False if not
    """
    return cls.__module__ == "typing"