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

Method __getitem__

rat-sql-gap/seq2struct/models/enc_dec.py:15–16  ·  view source on GitHub ↗
(self, idx)

Source from the content-addressed store, hash-verified

13 self.components = components
14
15 def __getitem__(self, idx):
16 return tuple(c[idx] for c in self.components)
17
18 def __len__(self):
19 return len(self.components[0])

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected