Test if the :class:`.BoundedSet` contains item.
(self, item: Any)
| 19 | """ |
| 20 | |
| 21 | def __contains__(self, item: Any) -> bool: |
| 22 | """Test if the :class:`.BoundedSet` contains item.""" |
| 23 | self._access(item) |
| 24 | return item in self._set |
| 25 | |
| 26 | def __init__(self, max_items: int) -> None: |
| 27 | """Initialize a :class:`.BoundedSet` instance.""" |