[New-bugs-announce] [issue43798] Add position metadata to alias AST type

Matthew Suozzo report at bugs.python.org
Fri Apr 9 16:28:56 EDT 2021

New submission from Matthew Suozzo <matthew.suozzo at gmail.com>:

Given the increasing use of long `from typing import foo, bar, ...` import sequences, it's becoming more desirable to address individual components of the import node. Unfortunately, the ast.alias node doesn't contain source location metadata (e.g. lineno, col_offset).

This metadata would be comparatively easy to add, backwards compatible, and would enable more precise diagnostics e.g. lints.

components: Interpreter Core
messages: 390663
nosy: matthew.suozzo
priority: normal
severity: normal
status: open
title: Add position metadata to alias AST type
type: enhancement
versions: Python 3.10, Python 3.6, Python 3.7, Python 3.8, Python 3.9

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list