class documentation

Model a use or a definition, either named or unnamed, and its users.

Method add_user Undocumented
Method name If the node associated to this Def has a name, returns this name. Otherwise returns None.
Method users The list of ast entity that holds a reference to this node.
Instance Variable islive Undocumented
Instance Variable node Undocumented
Method _setup Undocumented
Method _str Undocumented
Instance Variable _users Undocumented
def add_user(self, node: Def): (source)

Undocumented

def name(self) -> str | None: (source)

If the node associated to this Def has a name, returns this name. Otherwise returns None.

def users(self) -> Collection[Def]: (source)

The list of ast entity that holds a reference to this node.

Undocumented

def _setup(self): (source)

Undocumented

def _str(self, nodes: dict[Def, int]) -> str: (source)

Undocumented

_users: MutableSet[Def] = (source)

Undocumented