limit_items
limit_items(
items: collections.abc.Iterable[None] ,
limit: int | None[int, None] = None,
)-> ‘tuple[list[_Item], int]’
Take at most limit items, and say how many were left behind.
Where a repr stops early it says how much it is not showing, so the count is as much a part of the answer as the items are; silently stopping at ten reads as though ten is all there were.