[issue40726] ast.Call end_lineno is defined and returns None

Anthony Sottile report at bugs.python.org
Fri May 22 12:07:14 EDT 2020


Anthony Sottile <asottile at umich.edu> added the comment:

There's current expectation in a lot of linters / code formatters that the *lineno and *col_offset attributes will be missing if they are not attached to the node

setting them to None is going to break a lot of those, if possible I'd suggest going back to when they were missing

----------
nosy: +Anthony Sottile

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40726>
_______________________________________


More information about the Python-bugs-list mailing list