forked from VimPlug/jedi
Gracefully fail in 2.7 because inspect.signature is not available.
This commit is contained in:
@@ -117,6 +117,8 @@ class CompiledObject(Context):
|
||||
def get_param_names(self):
|
||||
obj = self.obj
|
||||
try:
|
||||
if py_version < 33:
|
||||
raise ValueError("inspect.signature was introduced in 3.3")
|
||||
if py_version == 34:
|
||||
# In 3.4 inspect.signature are wrong for str and int. This has
|
||||
# been fixed in 3.5. The signature of object is returned,
|
||||
|
||||
Reference in New Issue
Block a user