mirror of
https://github.com/davidhalter/jedi.git
synced 2026-03-06 05:24:22 +08:00
Fix issues with getitem on compiled objects that have annotations, see #1719
This commit is contained in:
@@ -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)])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user