Skip to main content
View Source on Github

Inherits from

Placeholder

Methods

edit

Modifies the return type annotation of a function.
View Source on Github

Parameters

new_src
required
The return type annotation to add. If it doesn't start with ':', a ':' will be prepended.
fix_indentation
default:False
Whether to fix the indentation of the added code. Defaults to False.
priority
default:0
The priority of this edit. Defaults to 0.
dedupe
default:True
Whether to remove duplicate edits. Defaults to True.

Returns

remove

Removes this element from its parent container.
View Source on Github

Returns