MCPcopy
hub / github.com/psf/black / _stringify_ast_with_new_parent

Function _stringify_ast_with_new_parent

src/black/parsing.py:180–185  ·  view source on GitHub ↗
(
    node: ast.AST, parent_stack: list[ast.AST], new_parent: ast.AST
)

Source from the content-addressed store, hash-verified

178
179
180def _stringify_ast_with_new_parent(
181 node: ast.AST, parent_stack: list[ast.AST], new_parent: ast.AST
182) -> Iterator[str]:
183 parent_stack.append(new_parent)
184 yield from _stringify_ast(node, parent_stack)
185 parent_stack.pop()
186
187
188def _stringify_ast(node: ast.AST, parent_stack: list[ast.AST]) -> Iterator[str]:

Callers 1

_stringify_astFunction · 0.85

Calls 3

_stringify_astFunction · 0.85
popMethod · 0.80
appendMethod · 0.45

Tested by

no test coverage detected