"""
This type stub file was generated by pyright.
"""

import contextlib
from typing import TYPE_CHECKING
from streamlit.runtime.metrics_util import gather_metrics

if TYPE_CHECKING:
    ...
_SPACES_RE = ...
_EMPTY_LINE_RE = ...
@gather_metrics("echo")
@contextlib.contextmanager
def echo(code_location=...): # -> Generator[None, Any, None]:
    """Use in a `with` block to draw some code on the app, then execute it.

    Parameters
    ----------
    code_location : "above" or "below"
        Whether to show the echoed code before or after the results of the
        executed code block.

    Example
    -------
    >>> import streamlit as st
    >>>
    >>> with st.echo():
    >>>     st.write('This code will be printed')

    """
    ...

