mirror of
https://github.com/davidhalter/jedi.git
synced 2026-02-01 04:26:07 +08:00
ignore multiple param names
This commit is contained in:
@@ -835,7 +835,7 @@ class Param(Statement):
|
||||
""" get the name of the param """
|
||||
n = self.set_vars or self.used_vars
|
||||
if len(n) > 1:
|
||||
raise IndexError("Multiple param names (%s)." % n)
|
||||
debug.warning("Multiple param names (%s)." % n)
|
||||
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']
|
||||
str()).upper
|
||||
@@ -101,3 +106,9 @@ a[0]
|
||||
|
||||
#? []
|
||||
int()).
|
||||
|
||||
def asdf(a or b): # multiple param names
|
||||
return a
|
||||
|
||||
#? int()
|
||||
asdf(2)
|
||||
|
||||
Reference in New Issue
Block a user