mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-09 23:34:45 +08:00
tests for lambda params - #379
This commit is contained in:
@@ -59,3 +59,15 @@ class C():
|
||||
self.a = lambda: 1
|
||||
#? int()
|
||||
C().a()
|
||||
|
||||
|
||||
# -----------------
|
||||
# lambda param (#379)
|
||||
# -----------------
|
||||
class Test(object):
|
||||
def __init__(self, pred=lambda x, y: x):
|
||||
self.a = 1
|
||||
#? int()
|
||||
self.a
|
||||
#? float()
|
||||
pred(1.0, 2)
|
||||
|
||||
Reference in New Issue
Block a user