from typing import Union
from typing import Type
from typing import Callable


def get_docstr(callable_: Union[Type, Callable]) -> str:
    """Returns the docstring of the argument or empty string if it does not
    have any docstring"""
    cls_doc = getattr(callable_, "__doc__", None)
    return "" if cls_doc is None else cls_doc