def has_doc(obj):
    """
        Return whether an object has a docstring
    :param obj: Object to check for docstring on
    :return: Whether the object has a docstring
    """
    return hasattr(obj, "__doc__") and isinstance(obj.__doc__, str)