Skip to content

Python generic type hit not working correctly #182137

@spacether

Description

@spacether

Does this issue occur when all extensions are disabled?: Yes/No

  • VS Code Version: 1.78.1
  • OS Version: mac 12.6.3 Monerey

Steps to Reproduce:

  1. in a python file paste in this code:
import typing
T = typing.TypeVar('T')


class A(typing.Generic[T]):
  pass

B = A
a: A[int]
b: B[int]
  1. mouse over the type hint for a and b
  2. a is correctly defined using int, b lacks the defined int generic

Please fix vscode so type hints using B like B[int] will be understood by the visual studio code ide. Thanks!

Metadata

Metadata

Assignees

Labels

*caused-by-extensionIssue identified to be caused by an extension

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions