mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-26 07:11:08 +08:00
Make sure Callable TypeVars are better identified, solves a part of #1413
This commit is contained in:
@@ -402,6 +402,15 @@ type_in_out2()
|
||||
#? float()
|
||||
type_in_out2(float)
|
||||
|
||||
def ma(a: typing.Callable[[str], TYPE_VARX]) -> typing.Callable[[str], TYPE_VARX]:
|
||||
return a
|
||||
|
||||
def mf(s: str) -> int:
|
||||
return int(s)
|
||||
|
||||
#? int()
|
||||
ma(mf)('2')
|
||||
|
||||
# -------------------------
|
||||
# TYPE_CHECKING
|
||||
# -------------------------
|
||||
|
||||
Reference in New Issue
Block a user