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

from typing import Generic, TypeVar
from graph_sitter.core.interfaces.editable import Editable
from graph_sitter.core.placeholder.placeholder import Placeholder
from graph_sitter.writer_decorators import apidoc

Parent = TypeVar("Parent", bound="Editable")
@apidoc
class StubPlaceholder(Placeholder[Parent], Generic[Parent]):
    """A placeholder for a stub that does not exist.
    Can be populated using the `edit` method.
    """
    def edit(self, new_src: str, fix_indentation: bool = ..., priority: int = ..., dedupe: bool = ...) -> None:
        """Edits the source code of this placeholder node.

        Modifies the source code with the provided new source code.

        Args:
            new_src (str): The new source code to replace the current source code.
            fix_indentation (bool, optional): Whether to automatically fix the indentation of the new source code. Defaults to False.
            priority (int, optional): The priority of this edit operation. Higher priority edits are applied first. Defaults to 0.
            dedupe (bool, optional): Whether to deduplicate this edit against other pending edits. Defaults to True.

        Returns:
            None
        """
        ...
    


