Inherits from

Placeholder

Methods


edit

Modifies the return type annotation of a function.

Adds or modifies the return type annotation of a function after its parameter list.

Args: new_src (str): The return type annotation to add. If it doesn’t start with ’:’, a ’:’ will be prepended. fix_indentation (bool, optional): Whether to fix the indentation of the added code. Defaults to False. priority (int, optional): The priority of this edit. Defaults to 0. dedupe (bool, optional): Whether to remove duplicate edits. Defaults to True.

Returns: None

Note: If new_src is empty or None, the method returns without making any changes.

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:
    ...

Was this page helpful?