mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-06 22:14:27 +08:00
Fix tuple issue in 3.6
This commit is contained in:
@@ -656,7 +656,8 @@ def bar():
|
|||||||
({'return': 'typing.Optional[str, int]'}, [], ''), # Takes only one arg
|
({'return': 'typing.Optional[str, int]'}, [], ''), # Takes only one arg
|
||||||
({'return': 'typing.Any'}, [], ''),
|
({'return': 'typing.Any'}, [], ''),
|
||||||
|
|
||||||
({'return': 'typing.Tuple[int, str]'}, ['tuple'], ''),
|
({'return': 'typing.Tuple[int, str]'},
|
||||||
|
['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]'),
|
||||||
|
|||||||
Reference in New Issue
Block a user