A class that represents a Python assignment statement in a codebase, such as x = 1
or a, b = 1, 2
. This includes potentially multiple Assignments via statement.assignments
, which represent each assignment of a value to a variable within this statement.
str
str
int
str
Editable
with new_src
.
str
bool
int
bool
None
Union[list[str], str]
bool
list[str]
bool
TSNode
NodeId
CodebaseContext
PyCodeBlock
int
TSNode
str
bool
str
bool, optional
bool, optional
int, optional
bool, optional
None
str
bool
bool
int
bool
None
bool
bool
None
bool
int
bool
None
str
str
int, optional
bool, optional
int, optional
int
regex_pattern
, similar to python’s re.search().
str
bool
bool
str
None