Batuhan Taskaya <batuhanosmantask...@gmail.com> added the comment:

> It is not so easy for fields like "type_ignores". They are mutable lists, so 
> this approach cannot be applied to them.

What about keeping ASDL signatures in the nodes (). If we know the type of a 
field (can be parsed in runtime) we can infer the default value of a field. For 
type_ignores, it is a sequence so if it is empty we can just crop that part.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue36287>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to