MCPcopy Create free account
hub / github.com/streamlit/streamlit / items

Method items

lib/streamlit/cursor.py:96–99  ·  view source on GitHub ↗

Iterate through (index, value) for filled entries.

(self)

Source from the content-addressed store, hash-verified

94 return len(self._data)
95
96 def items(self) -> Iterator[tuple[int, T]]:
97 """Iterate through (index, value) for filled entries."""
98 for index in sorted(self._data):
99 yield index, self._data[index]
100
101 def __contains__(self, index: int) -> bool:
102 return index in self._data

Calls

no outgoing calls