# Documentation The [collections.abc.Sequence](https://docs.python.org/3/library/collections.abc.html#collections.abc.Sequence) docs state that `__getitem__` needs to be implemented, and link to some general [`__getitem__` docs](https://docs.python.org/3/reference/datamodel.html#object.__getitem__). It states > For [sequence](https://docs.python.org/3/glossary.html#term-sequence) types, the accepted keys should be integers. **Optionally**, they may support [slice](https://docs.python.org/3/library/functions.html#slice) objects as well. But the corresponding [typing information](https://github.com/python/typeshed/blob/dbe6cb5cfb016de85143f9cb5ae772561e8982f6/stdlib/typing.pyi#L583) **requires** slice support. To resolve this, either the docs or the typing information should be adapted. ## Related https://github.com/python/cpython/issues/120802 (general `__getitem__` docs improvements) My corresponding question and [answer](https://stackoverflow.com/a/79518256/16563251) on Stackoverflow