shairubin / fun_with_ast

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

reset missing for node #198

Closed shairubin closed 5 months ago

shairubin commented 5 months ago
def testSimpleRaiseWithString3(self):
    string = """raise ValueError(
            f"embed_dim must be divisible by num_heads (got `embed_dim`: {self.embed_dim}"
            f" and `num_heads`: {self.num_heads})."
        )"""
    node = GetNodeFromInput(string)
    self._verify_match(node, string)