mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-12 21:10:15 +08:00
Make Ellipsis without list in Callable work, fixes #1475
This commit is contained in:
1 parent
3ad3dc08b8
commit
a49c757b8a
2 files changed
+13
-7
No files matched your search
@@ -436,6 +436,12 @@ def the_callable() -> float: ...
|
||||
#? float()
|
||||
call3_pls()(the_callable)[0]
|
||||
|
||||
def call4_pls(fn: typing.Callable[..., TYPE_VARX]) -> typing.Callable[..., TYPE_VARX]:
|
||||
return ""
|
||||
|
||||
#? int()
|
||||
call4_pls(lambda x: 1)()
|
||||
|
||||
# -------------------------
|
||||
# TYPE_CHECKING
|
||||
# -------------------------
|
||||
|
||||
Reference in new issue
Block a user