mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-28 03:13:17 +08:00
Fix api.classes.CallDef.params
We need to check for compiled objects
This commit is contained in:
1 parent
725e55485a
commit
d5ba683756
1 file changed
+2
@@ -554,6 +554,8 @@ class CallDef(object):
|
|||||||
if isinstance(self._executable, er.InstanceElement):
|
if isinstance(self._executable, er.InstanceElement):
|
||||||
return self._executable.params[1:]
|
return self._executable.params[1:]
|
||||||
return self._executable.params
|
return self._executable.params
|
||||||
|
elif self._executable.isinstance(er.compiled.CompiledObject):
|
||||||
|
return self._executable.params
|
||||||
else:
|
else:
|
||||||
try:
|
try:
|
||||||
sub = self._executable.get_subscope_by_name('__init__')
|
sub = self._executable.get_subscope_by_name('__init__')
|
||||||
|
|||||||
Reference in new issue
Block a user