View Source on Github
Attributes
full_name
str | Nonename
str | NoneMethods
get_name
Returns the name node of the object.View Source on Github
Returns
The name node of the object. Can be a Name node for simple names, a ChainedAttribute for names with namespaces (e.g., a.b), or None if the object has no name.
rename
Sets the name of an object and updates all its usages.View Source on Github
Parameters
name
strrequired
Returns
Noneset_name
Sets the name of a code element.View Source on Github
Parameters
name
strrequired
Returns
None