1
0
forked from VimPlug/jedi

Removed various 3.3/3.4/3.5 references

This commit is contained in:
Dave Halter
2020-07-02 00:34:22 +02:00
parent 9d5acf3c53
commit 23db298e2f
8 changed files with 1 additions and 30 deletions

View File

@@ -464,9 +464,6 @@ class DirectObjectAccess(object):
"""
Returns Tuple[Optional[str], Tuple[AccessPath, ...]]
"""
if sys.version_info < (3, 5):
return None, ()
name = None
args = ()
if safe_getattr(self._obj, '__module__', default='') == 'typing':
@@ -505,8 +502,6 @@ class DirectObjectAccess(object):
def _get_signature(self):
obj = self._obj
if py_version < 33:
raise ValueError("inspect.signature was introduced in 3.3")
try:
return inspect.signature(obj)
except (RuntimeError, TypeError):