[issue35894] Apparent regression in 3.8-dev: 'TypeError: required field "type_ignores" missing from Module'
Guido van Rossum
report at bugs.python.org
Mon May 20 11:18:56 EDT 2019
Guido van Rossum <guido at python.org> added the comment:
> [T]here's other optional fields in the ast, type ignores don't seem essential to the `Module`, could those be made optional as well?
I think you're referring to the `?` syntax in `Python.asdl`. But the `type_ignores` attribute is already a list (using `*`) and AFAICT you cannot combine `?` and `*`. You have to provide an empty list.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35894>
_______________________________________
More information about the Python-bugs-list
mailing list