1
0
forked from VimPlug/jedi

Fix a lot on PEP 484.

This commit is contained in:
Dave Halter
2016-11-14 23:29:09 +01:00
parent 03aa630932
commit 31514dfe76
7 changed files with 53 additions and 44 deletions

View File

@@ -649,8 +649,7 @@ def py__getitem__(evaluator, context, types, trailer):
# https://github.com/davidhalter/jedi/issues/663
for typ in list(types):
if isinstance(typ, ClassContext):
typing_module_types = \
pep0484.get_types_for_typing_module(evaluator, typ, node)
typing_module_types = pep0484.py__getitem__(context, typ, node)
if typing_module_types is not None:
types.remove(typ)
result |= typing_module_types