Skip to content

[Python] Mark "X" in from ___ import ___ as X as a "Definition"  #2274

@michaelblyons

Description

@michaelblyons
  • Sublime Version: 4065
  • OS Version: MacOS 10.15.3
from module import thing as alias

alias('foo')
alias('bar')

Hovering over alias on one of the bottom lines will show a popup with a "References" section that links to the other bottom one.

Expected behavior

It'd be great if there was also a "Definitions" section in the popup that linked to the alias on the first line. Ideally, it would be a definition for the one file. (i.e. alias in other files would not find it.)

If I hadn't given thing an alias, uses of thing would be linked to the thing definition in module.py, but there isn't any definition for alias apart from the import as.

Actual behavior

Understandably, there is no Definitions section currently in the popup.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions