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

from streamlit.runtime.scriptrunner_utils.script_requests import RerunData

class ScriptControlException(BaseException):
    """Base exception for ScriptRunner."""
    ...


class StopException(ScriptControlException):
    """Silently stop the execution of the user's script."""
    ...


class RerunException(ScriptControlException):
    """Silently stop and rerun the user's script."""
    def __init__(self, rerun_data: RerunData) -> None:
        """Construct a RerunException.

        Parameters
        ----------
        rerun_data : RerunData
            The RerunData that should be used to rerun the script
        """
        ...
    
    def __repr__(self) -> str:
        ...
    


