Skip to content
This repository was archived by the owner on Apr 14, 2022. It is now read-only.
This repository was archived by the owner on Apr 14, 2022. It is now read-only.

Hover over type alias does not work with Callable #2076

@pwinston

Description

@pwinston

Environment data

  • VS Code version: 1.45.1
  • Extension version: 2020.5.86806
  • OS and version: macOS 10.15.3
  • Python version: 3.8.1
  • Type of virtual environment used: conda
  • Jedi or Language Server?: Language Server
  • Value of the python.languageServer setting: Microsoft

Expected behaviour

Hover over type alias shows the definition.

Actual behaviour

When I hover over Type1 in steps below it just shows Type1.

Steps to reproduce:

New Python file type in:

from typing import Callable, Dict, List, Tuple, Type, Union
Type1 = Callable[[str], str]
Type2 = Dict[str, str]
Type3 = List[str]
Type4 = Tuple[str, str]
Type5 = Union[str, int]

Type1

Hover over the bottom Type1 it just shows Type1:

vscode - callable2

But if you choose "peek definition" it has full information:

vscode - peek

All other types work (Dict, List, Tuple, Untion) but not Callable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue or pull request already exists

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions