forked from VimPlug/jedi
ignore multiple param names
This commit is contained in:
@@ -835,7 +835,7 @@ class Param(Statement):
|
|||||||
""" get the name of the param """
|
""" get the name of the param """
|
||||||
n = self.set_vars or self.used_vars
|
n = self.set_vars or self.used_vars
|
||||||
if len(n) > 1:
|
if len(n) > 1:
|
||||||
raise IndexError("Multiple param names (%s)." % n)
|
debug.warning("Multiple param names (%s)." % n)
|
||||||
return n[0]
|
return n[0]
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,10 @@
|
|||||||
# This file is less about the results and much more about the fact, that no
|
"""
|
||||||
# exception should be thrown.
|
This file is less about the results and much more about the fact, that no
|
||||||
|
exception should be thrown.
|
||||||
|
|
||||||
|
Basically this file could change depending on the current implementation. But
|
||||||
|
there should never be any errors.
|
||||||
|
"""
|
||||||
|
|
||||||
#? ['upper']
|
#? ['upper']
|
||||||
str()).upper
|
str()).upper
|
||||||
@@ -101,3 +106,9 @@ a[0]
|
|||||||
|
|
||||||
#? []
|
#? []
|
||||||
int()).
|
int()).
|
||||||
|
|
||||||
|
def asdf(a or b): # multiple param names
|
||||||
|
return a
|
||||||
|
|
||||||
|
#? int()
|
||||||
|
asdf(2)
|
||||||
|
|||||||
Reference in New Issue
Block a user