1
0
forked from VimPlug/jedi

Reflow for linting

This commit is contained in:
Peter Law
2020-07-21 21:28:56 +01:00
parent 4783c065da
commit 9505dabfef
2 changed files with 9 additions and 4 deletions

View File

@@ -53,8 +53,10 @@ def _infer_annotation_string(context, string, index=None):
value_set = context.infer_node(node)
if index is not None:
value_set = value_set.filter(
lambda value: value.array_type == 'tuple' # noqa
and len(list(value.py__iter__())) >= index
lambda value: (
value.array_type == 'tuple'
and len(list(value.py__iter__())) >= index
)
).py__simple_getitem__(index)
return value_set