Skip to content

Commit 4f1aa5d

Browse files
committed
[FIX] server: take type alias next ref for type alias variables
1 parent d8fac47 commit 4f1aa5d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

server/features/hover.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ def build_block_1(symbol, type, infered_type):
5353
type = str(symbol.type).lower()
5454
if symbol.eval and not symbol.eval.instance and not isinstance(symbol, ImportSymbol):
5555
type = "type alias"
56+
type_alias_ref = type_ref.next_ref()[0]
57+
if type_alias_ref != type_ref:
58+
type_str = type_alias_ref.name
5659
if symbol.type == SymType.FUNCTION:
5760
if symbol.is_property:
5861
type = "property"

0 commit comments

Comments
 (0)