Batuhan Taskaya <[email protected]> added the comment:
Hey @cleoold! Technically the second AST you gave is invalid (fun2),
considering that the FunctionType is not an expression;
mod = Module(stmt* body, type_ignore* type_ignores)
| FunctionType(expr* argtypes, expr returns)
expr = BoolOp(boolop op, expr* values)
| NamedExpr(expr target, expr value)
| BinOp(expr left, operator op, expr right)
Though I am curious about use case. How did you come with the fun2's AST?
----------
nosy: +BTaskaya -Batuhan Taskaya
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue43609>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com