(index: int, parent: ast.AST,
               nodes: Union[ast.AST, List[ast.AST]],
               holder_attribute='body')
Replaces node in parents body at index with nodes.
Replaces node in parents body at index with nodes.
Replaces node in parents body at index with nodes .
def replace_at(index: int, parent: ast.AST,
               nodes: Union[ast.AST, List[ast.AST]],
               holder_attribute='body') -> None:
    """Replaces node in parents body at index with nodes."""
    getattr(parent, holder_attribute).pop(index)  # type: ignore
    insert_at(index, parent, nodes, holder_attribute)
def replace_at ( index : int , parent : ast . AST , nodes : Union [ ast . AST , List [ ast . AST ] ] , holder_attribute = 'body' ) -> None : getattr ( parent , holder_attribute ) . pop ( index ) # type: ignore insert_at ( index , parent , nodes , holder_attribute )