Commit e6678055 authored by Tom Niget's avatar Tom Niget

Add protected fields to PlainBlock so NodeTransformer knows it's a composite node

parent b4f3b150
......@@ -31,6 +31,8 @@ class NodeVisitorSeq:
@dataclass
class PlainBlock(ast.stmt):
body: list[ast.stmt]
_fields = ("body",)
__match_args__ = ("body",)
@dataclass
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment