Fix issues with getitem on compiled objects that have annotations, see #1719

This commit is contained in:
Dave Halter committed 2021-01-17 13:48:22 +01:00
1 parent 47d0318fa6
commit 387d73990b
3 files changed
+29 -3

No files matched your search

+1 -1
View File
@@ -166,7 +166,7 @@ class CompiledValue(Value):
except AttributeError:
return super().py__simple_getitem__(index)
if access is None:
return NO_VALUES
return super().py__simple_getitem__(index)
return ValueSet([create_from_access_path(self.inference_state, access)])