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

This commit is contained in:
Dave Halter
2021-01-17 13:48:22 +01:00
parent 47d0318fa6
commit 387d73990b
3 changed files with 29 additions and 3 deletions
+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)])