Python
PyReturnTypePlaceholder
A placeholder for a python return type that does not exist. Can be populated using the edit
method.
View Source on Github
Inherits from
Methods
edit
Edits or creates a return type annotation for a method or function.
View Source on Github
Parameters
new_src
str
required
The new return type annotation text to be added.
fix_indentation
bool, optional
default:False
Whether to fix the indentation of the new source. Defaults to False.
priority
int, optional
default:0
Priority of the edit operation. Defaults to 0.
dedupe
bool, optional
default:True
Whether to deduplicate the edit operation. Defaults to True.
Returns
None
remove
Removes this element from its parent container.
View Source on Github
Returns
None
Was this page helpful?