mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-08 01:54:33 +08:00
Basic support for TypeAlias, fixes #1969
This commit is contained in:
1 parent
590ed56c6e
commit
f8fb2d1230
2 files changed
+22
-2
No files matched your search
@@ -587,3 +587,20 @@ b.add_x(2).add_y(5)
|
||||
b.add_x(2).add_not_implemented(5)
|
||||
#? Builder()
|
||||
b.add_x(2).add_not_implemented_typing_extensions(5)
|
||||
|
||||
# -----------------
|
||||
# TypeAlias (see also #1969)
|
||||
# -----------------
|
||||
|
||||
from typing import TypeAlias
|
||||
|
||||
IntX: typing.TypeAlias = int
|
||||
IntY: TypeAlias = int
|
||||
|
||||
#? int
|
||||
IntX
|
||||
def f(x: IntX, y: IntY):
|
||||
#? int()
|
||||
x
|
||||
#? int()
|
||||
y
|
||||
Reference in new issue
Block a user