shairubin / fun_with_ast

let's have fun manipulating ASTs in Python
Apache License 2.0
0 stars 1 forks source link

fail to match {{ in jstr #335

Closed shairubin closed 1 week ago

shairubin commented 1 week ago

`def to_dot(self) -> str: """Returns the dot representation of the graph.

    Returns:
        A dot representation of the graph.
    """
    edges = "\n".join(f'"{f}" -> "{t}";' for f, t in self.edges)
    return f"""\

digraph G {{ rankdir = LR; node [shape=box]; {edges} }} """ `