MCPcopy Create free account
hub / github.com/apify/impit / __bool__

Method __bool__

impit-python/python/impit/cookies.py:165–169  ·  view source on GitHub ↗

Return True if there are any cookies in the jar.

(self)

Source from the content-addressed store, hash-verified

163 return (cookie.name for cookie in self.jar)
164
165 def __bool__(self) -> bool:
166 """Return True if there are any cookies in the jar."""
167 for _ in self.jar:
168 return True
169 return False
170
171 def __repr__(self) -> str:
172 """Return a string representation of the Cookies object."""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected