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 pablogsal
Recipients BTaskaya, gvanrossum, hauntsaninja, lys.nikolaou, matthew.suozzo, pablogsal
Date 2021-04-11.23:01:03
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1618182063.17.0.833808516816.issue43798@roundup.psfhosted.org>
In-reply-to
Content
> FYI, probably unavoidable, but this appears to have broken pytest https://github.com/pytest-dev/pytest/issues/8539

What's the problem? alias objects *have* lineno argument:

>>> print(ast.dump(ast.parse("from x import y"), include_attributes=True, indent=4))
Module(
    body=[
        ImportFrom(
            module='x',
            names=[
                alias(
                    name='y',
                    lineno=1,
                    col_offset=14,
                    end_lineno=1,
                    end_col_offset=15)],
            level=0,
            lineno=1,
            col_offset=0,
            end_lineno=1,
            end_col_offset=15)],
    type_ignores=[])
History
Date User Action Args
2021-04-11 23:01:03pablogsalsetrecipients: + pablogsal, gvanrossum, lys.nikolaou, BTaskaya, hauntsaninja, matthew.suozzo
2021-04-11 23:01:03pablogsalsetmessageid: <1618182063.17.0.833808516816.issue43798@roundup.psfhosted.org>
2021-04-11 23:01:03pablogsallinkissue43798 messages
2021-04-11 23:01:03pablogsalcreate