MCPcopy Create free account
hub / github.com/awslabs/gap-text2sql / __iter__

Method __iter__

rat-sql-gap/seq2struct/utils/vocab.py:43–46  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

41 self.elem_to_id = {elem: i for i, elem in enumerate(elements)}
42
43 def __iter__(self):
44 # type: () -> Iterator[Union[T, IndexedSet.Sentinel]]
45 for i in range(len(self)):
46 yield self.id_to_elem[i]
47
48 def __contains__(self, value):
49 # type: (object) -> bool

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected