1
0
forked from VimPlug/jedi

given_types -> generics

This commit is contained in:
Dave Halter
2019-05-27 21:08:19 +02:00
parent 5a6d8ba010
commit bee9bd7621
3 changed files with 21 additions and 21 deletions
+2 -2
View File
@@ -277,7 +277,7 @@ def _infer_type_vars(annotation_context, context_set):
elif isinstance(annotation_context, AnnotatedClass):
name = annotation_context.py__name__()
if name == 'Iterable':
given = annotation_context.get_given_types()
given = annotation_context.get_generics()
if given:
for nested_annotation_context in given[0]:
_merge_type_var_dicts(
@@ -288,7 +288,7 @@ def _infer_type_vars(annotation_context, context_set):
)
)
elif name == 'Mapping':
given = annotation_context.get_given_types()
given = annotation_context.get_generics()
if len(given) == 2:
for context in context_set:
try: