View Source on Github

Inherits from

Placeholder

Methods

edit

Edits the type annotation of a placeholder node.

View Source on Github

Parameters

new_src
str
required

The new type annotation text to be inserted.

fix_indentation
bool, optional
default:False

Whether to fix the indentation of the new source.

priority
int, optional
default:0

Priority of the edit operation.

dedupe
bool, optional
default:True

Whether to remove duplicate edits.

Returns

None

remove

Removes this element from its parent container.

View Source on Github

Returns

None

Was this page helpful?