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