MCPcopy Create free account
hub / github.com/sphinx-doc/sphinx / visit_Assign

Method visit_Assign

sphinx/pycode/parser.py:432–434  ·  view source on GitHub ↗

Handles Assign node and pick up a variable comment.

(self, node: ast.Assign)

Source from the content-addressed store, hash-verified

430 self.typing_overload_names.add(name.asname or name.name)
431
432 def visit_Assign(self, node: ast.Assign) -> None:
433 """Handles Assign node and pick up a variable comment."""
434 self._handle_assignment(node)
435
436 def visit_AnnAssign(self, node: ast.AnnAssign) -> None:
437 """Handles AnnAssign node and pick up a variable comment."""

Callers

nothing calls this directly

Calls 1

_handle_assignmentMethod · 0.95

Tested by

no test coverage detected