MCPcopy Index your code
hub / github.com/praw-dev/praw / __contains__

Method __contains__

praw/models/util.py:21–24  ·  view source on GitHub ↗

Test if the :class:`.BoundedSet` contains item.

(self, item: Any)

Source from the content-addressed store, hash-verified

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."""

Callers

nothing calls this directly

Calls 1

_accessMethod · 0.95

Tested by

no test coverage detected