Ethan Smith <et...@ethanhs.me> added the comment: There is also a relevant mypy bug report https://github.com/python/mypy/issues/3871. This seems like a common problem for tools working on the AST. The relevant code seems to be https://github.com/python/cpython/blob/master/Python/ast.c#L1695.
Would a possible solution be adding a decorated_lineno attribute to decorated ast nodes? ---------- nosy: +Ethan Smith _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue33211> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com