Inherits from

Placeholder

Methods


edit

Edits or creates a return type annotation for a method or function.

Used to modify or create a return type annotation in Python functions and methods. If the new source is not empty, it will be appended after the parameters with the ’ -> ’ prefix.

Args: new_src (str): The new return type annotation text to be added. fix_indentation (bool, optional): Whether to fix the indentation of the new source. Defaults to False. priority (int, optional): Priority of the edit operation. Defaults to 0. dedupe (bool, optional): Whether to deduplicate the edit operation. 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:
    ...