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

from typing import TYPE_CHECKING
from sphinx.application import Sphinx

if TYPE_CHECKING:
    ...
def save_traceback(app: Sphinx | None, exc: BaseException) -> str:
    """Save the given exception's traceback in a temporary file."""
    ...

def format_exception_cut_frames(x: int = ...) -> str:
    """Format an exception with traceback, but only the last x frames."""
    ...

