mirror of
https://github.com/davidhalter/jedi.git
synced 2026-04-28 12:25:30 +08:00
Remove some 3.7/3.6 artifacts
This commit is contained in:
@@ -670,8 +670,7 @@ def bar():
|
||||
({'return': 'typing.Any'},
|
||||
['_AnyMeta'] if sys.version_info >= (3, 11) else [], ''),
|
||||
|
||||
({'return': 'typing.Tuple[int, str]'},
|
||||
['Tuple' if sys.version_info[:2] == (3, 6) else 'tuple'], ''),
|
||||
({'return': 'typing.Tuple[int, str]'}, ['tuple'], ''),
|
||||
({'return': 'typing.Tuple[int, str]'}, ['int'], 'x()[0]'),
|
||||
({'return': 'typing.Tuple[int, str]'}, ['str'], 'x()[1]'),
|
||||
({'return': 'typing.Tuple[int, str]'}, [], 'x()[2]'),
|
||||
|
||||
@@ -43,8 +43,8 @@ from test.helpers import root_dir
|
||||
])
|
||||
def test_infer_and_goto(Script, code, full_name, has_stub, has_python, way,
|
||||
kwargs, type_, options, environment):
|
||||
if type_ == 'infer' and full_name == 'typing.Sequence' and environment.version_info >= (3, 7):
|
||||
# In Python 3.7+ there's not really a sequence definition, there's just
|
||||
if type_ == 'infer' and full_name == 'typing.Sequence':
|
||||
# Since Python 3.7+ there's not really a sequence definition, there's just
|
||||
# a name that leads nowhere.
|
||||
has_python = False
|
||||
|
||||
|
||||
Reference in New Issue
Block a user