Inherits from

Placeholder

Methods


edit

Edits the source code of this placeholder node.

Modifies the source code of this placeholder node 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

def edit(self, new_src: str, fix_indentation: bool = False, priority: int = 0, dedupe: bool = True) -> None:
    ...

remove

Remove this element from its parent.

Remove this element by removing it from its parent container.

Args: *args: Variable length argument list. Unused. **kwargs: Arbitrary keyword arguments. Unused.

Returns: None

def remove(self, *args, **kwargs) -> None:
    ...