1
0
forked from VimPlug/jedi

Remove py__version__

This commit is contained in:
Dave Halter
2020-07-02 02:28:47 +02:00
parent 0cd6a8f5cc
commit db28eee760
6 changed files with 8 additions and 26 deletions

View File

@@ -8,7 +8,7 @@ import warnings
import re
import builtins
from jedi._compatibility import unicode, py_version
from jedi._compatibility import unicode
from jedi.inference.compiled.getattr_static import getattr_static
ALLOWED_GETITEM_TYPES = (str, list, tuple, unicode, bytes, bytearray, dict)
@@ -470,8 +470,6 @@ class DirectObjectAccess(object):
return inspect.isclass(self._obj) and self._obj != type
def _annotation_to_str(self, annotation):
if py_version < 30:
return ''
return inspect.formatannotation(annotation)
def get_signature_params(self):

View File

@@ -7,7 +7,6 @@ information returned to enable Jedi to make decisions.
import types
from jedi import debug
from jedi._compatibility import py_version
_sentinel = object()
@@ -65,7 +64,7 @@ def _static_getmro_newstyle(klass):
return mro
if py_version >= 30:
if True:
_shadowed_dict = _shadowed_dict_newstyle
_get_type = type
_static_getmro = _static_getmro_newstyle