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

from typing import Any

class ScriptCache:
    """Thread-safe cache of Python script bytecode."""
    def __init__(self) -> None:
        ...
    
    def clear(self) -> None:
        """Remove all entries from the cache.

        Notes
        -----
        Threading: SAFE. May be called on any thread.
        """
        ...
    
    def get_bytecode(self, script_path: str) -> Any:
        """Return the bytecode for the Python script at the given path.

        If the bytecode is not already in the cache, the script will be
        compiled first.

        Raises
        ------
        Any Exception raised while reading or compiling the script.

        Notes
        -----
        Threading: SAFE. May be called on any thread.
        """
        ...
    


