mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-07 22:44:27 +08:00
Function annotations don't need to be tested in Python 2.7.
This commit is contained in:
@@ -440,23 +440,6 @@ nested_def2('', c=1.0, b=1)[1]
|
||||
#? []
|
||||
nested_def2('')[1]
|
||||
|
||||
# -----------------
|
||||
# function annotations (should be ignored at the moment)
|
||||
# -----------------
|
||||
def annot(a:3, *args:3):
|
||||
return a, args[0]
|
||||
|
||||
#? str()
|
||||
annot('', 1.0)[0]
|
||||
#? float()
|
||||
annot('', 1.0)[1]
|
||||
|
||||
def annot_ret(a:3) -> 3:
|
||||
return a
|
||||
|
||||
#? str()
|
||||
annot_ret('')
|
||||
|
||||
# -----------------
|
||||
# magic methods
|
||||
# -----------------
|
||||
|
||||
Reference in New Issue
Block a user