Rename py__getitem__ to py__simple_getitem

This commit is contained in:
Dave Halter committed 2018-08-10 19:31:19 +02:00
1 parent bc5ca4d8ae
commit 84b89f4689
9 files changed
+31 -27

No files matched your search

+1 -1
View File
@@ -161,7 +161,7 @@ def eval_trailer(context, base_contexts, trailer):
result = ContextSet()
for typ in list(foo):
if isinstance(typ, (ClassContext, TreeInstance)):
typing_module_types = pep0484.py__getitem__(context, typ, node)
typing_module_types = pep0484.py__simple_getitem__(context, typ, node)
if typing_module_types is not None:
foo.remove(typ)
result |= typing_module_types