예제 #1
0
 def _imitate_values(self):
     lazy_value = LazyKnownValues(self._dict_values())
     return ValueSet([FakeList(self.inference_state, [lazy_value])])
예제 #2
0
 def _values(self):
     return ValueSet([
         FakeTuple(self.inference_state,
                   [LazyKnownValues(self._dict_values())])
     ])
예제 #3
0
 def py__iter__(self, contextualized_node=None):
     for keys, values in self._iterate():
         yield LazyKnownValues(keys)
예제 #4
0
 def py__iter__(self, contextualized_node=None):
     for set_ in self._iterate():
         yield LazyKnownValues(set_)
예제 #5
0
 def unpack(self, funcdef=None):
     for values in self._values_list:
         yield None, LazyKnownValues(values)
예제 #6
0
 def py__bases__(self):
     return [
         LazyKnownValues(
             self.inference_state.builtins_module.py__getattribute__(
                 'object'))
     ]
예제 #7
0
 def py__iter__(self, contextualized_node=None):
     for lazy_context in self._wrapped_value.py__iter__(
             contextualized_node):
         yield lazy_context
     yield LazyKnownValues(self._assigned_values)