@_with_element
def warning(self, element, body):
    "Display warning message.\n\n        Parameters\n        ----------\n        body : str\n            The warning text to display.\n\n        Example\n        -------\n        >>> st.warning('This is a warning')\n\n        "
    element.alert.body = _clean_text(body)
    element.alert.format = Alert_pb2.Alert.WARNING
Display warning message.

Parameters
----------
body : str
    The warning text to display.

Example
-------
>>> st.warning('This is a warning')
@_with_element
def warning(self, element, body):
    "Display warning message.\n\n        Parameters\n        ----------\n        body : str\n            The warning text to display.\n\n        Example\n        -------\n        >>> st.warning('This is a warning')\n\n        "
    element.alert.body = _clean_text(body)
    element.alert.format = Alert_pb2.Alert.WARNING