Skip to content

[completions] Rank symbols with the appropriate type higher after except <CURSOR> and raise <EXPR> from <CURSOR> #1779

@AlexWaygood

Description

@AlexWaygood

Similar to what we did for raise <CURSOR> in astral-sh/ruff#21571:

  • The type of a symbol after except must be assignable to type[BaseException] | tuple[type[BaseException], ...]
  • The type of a symbol after raise <EXPR> from must be assignable to BaseException | type[BaseException] | None

Metadata

Metadata

Assignees

No one assigned

    Labels

    completionsBugs or features relating to autocomplete suggestionsserverRelated to the LSP server

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions