MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / indexed

Method indexed

lib/sqlalchemy/orm/writeonly.py:138–139  ·  view source on GitHub ↗
(self, index: Union[int, slice])

Source from the content-addressed store, hash-verified

136 return attributes.History(list(added), list(unchanged), list(deleted))
137
138 def indexed(self, index: Union[int, slice]) -> Union[List[_T], _T]:
139 return list(self.added_items)[index]
140
141 def add_added(self, value: _T) -> None:
142 self.added_items.add(value)

Callers 1

__getitem__Method · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected