mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-27 22:33:17 +08:00
Make it possible to infer Callable TypeVars, fixes #1449
This commit is contained in:
1 parent
536a77551b
commit
e656a5f18f
6 files changed
+101
-5
No files matched your search
@@ -329,3 +329,24 @@ X.attr_y.value
|
||||
X().name
|
||||
#? float()
|
||||
X().attr_x.attr_y.value
|
||||
|
||||
|
||||
# -----------------
|
||||
# functools Python 3.8
|
||||
# -----------------
|
||||
|
||||
# python >= 3.8
|
||||
|
||||
@functools.lru_cache
|
||||
def x() -> int: ...
|
||||
@functools.lru_cache()
|
||||
def y() -> float: ...
|
||||
@functools.lru_cache(8)
|
||||
def z() -> str: ...
|
||||
|
||||
#? int()
|
||||
x()
|
||||
#? float()
|
||||
y()
|
||||
#? str()
|
||||
z()
|
||||
Reference in new issue
Block a user