PyReturnTypePlaceholder
A placeholder for a python return type that does not exist. Can be populated using the edit
method.
Inherits from
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
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
Was this page helpful?