PY-63371 PY-63372 PY-63373 Recognize type alias names in their definitions as targets for actions

In particular, for Rename and Go to Declaration or Usages.

GitOrigin-RevId: 760a28b3a2a2b22022e938d7b4b96729cd7f7dc2
This commit is contained in:
Mikhail Golubev
2023-10-04 18:36:31 +03:00
committed by intellij-monorepo-bot
parent 8a5536359d
commit 2e8e817447
7 changed files with 47 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
type Al<caret>ias[T] = dict[str, T]
def f[T](x: Alias[T]) -> T:
...

View File

@@ -0,0 +1,5 @@
type Renamed[T] = dict[str, T]
def f[T](x: Renamed[T]) -> T:
...

View File

@@ -0,0 +1,5 @@
type Alias[T] = dict[str, T]
def f[T](x: Al<caret>ias[T]) -> T:
...

View File

@@ -0,0 +1,5 @@
type Renamed[T] = dict[str, T]
def f[T](x: Renamed[T]) -> T:
...