MCPcopy Create free account
hub / github.com/dot-agent/nextpy / visit_Module

Method visit_Module

scripts/pyi_generator.py:420–430  ·  view source on GitHub ↗

Visit a Module node and remove docstring from body. Args: node: The Module node to visit. Returns: The modified Module node.

(self, node: ast.Module)

Source from the content-addressed store, hash-verified

418 return node
419
420 def visit_Module(self, node: ast.Module) -> ast.Module:
421 """Visit a Module node and remove docstring from body.
422
423 Args:
424 node: The Module node to visit.
425
426 Returns:
427 The modified Module node.
428 """
429 self.generic_visit(node)
430 return self._remove_docstring(node) # type: ignore
431
432 def visit_Import(
433 self, node: ast.Import | ast.ImportFrom

Callers

nothing calls this directly

Calls 1

_remove_docstringMethod · 0.95

Tested by

no test coverage detected