File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ fields = [
112112[Expr .nodes .ExprLambda ]
113113doc = " See also [Lambda](https://docs.python.org/3/library/ast.html#ast.Lambda)"
114114fields = [
115- { name = " parameters" , type = " Parameters?" },
115+ { name = " parameters" , type = " Box<crate:: Parameters> ?" },
116116 { name = " body" , type = " Expr" }
117117]
118118
Original file line number Diff line number Diff line change 2727 "CmpOp" ,
2828 "Comprehension" ,
2929 "DictItem" ,
30- "Parameters" ,
3130 "UnaryOp" ,
3231 "BoolOp" ,
3332 "Operator" ,
@@ -665,9 +664,7 @@ def write_node(out: list[str], ast: Ast) -> None:
665664 rust_ty = f"crate::{ rust_ty } "
666665 if ty .slice_ :
667666 rust_ty = f"[{ rust_ty } ]"
668- if (
669- ty .name in group_names or ty .name == "Parameters" or ty .slice_
670- ) and ty .seq is False :
667+ if (ty .name in group_names or ty .slice_ ) and ty .seq is False :
671668 rust_ty = f"Box<{ rust_ty } >"
672669
673670 if ty .seq :
You can’t perform that action at this time.
0 commit comments