1
0
forked from VimPlug/jedi

Gracefully fail in 2.7 because inspect.signature is not available.

This commit is contained in:
Dave Halter
2017-09-10 01:36:32 +02:00
parent 5c6f8bda01
commit 80284fb14b

View File

@@ -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,