This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ethan smith
Recipients ethan smith, gforcada, serhiy.storchaka
Date 2018-04-03.22:35:18
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1522794918.15.0.467229070634.issue33211@psf.upfronthosting.co.za>
In-reply-to
Content
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?
History
Date User Action Args
2018-04-03 22:35:18ethan smithsetrecipients: + ethan smith, serhiy.storchaka, gforcada
2018-04-03 22:35:18ethan smithsetmessageid: <1522794918.15.0.467229070634.issue33211@psf.upfronthosting.co.za>
2018-04-03 22:35:18ethan smithlinkissue33211 messages
2018-04-03 22:35:18ethan smithcreate