MCPcopy Create free account
hub / github.com/cdgriffith/Box / __hash__

Method __hash__

box/box_list.py:179–184  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

177 return out
178
179 def __hash__(self) -> int: # type: ignore[override]
180 if self.box_options.get("frozen_box"):
181 hashing = 98765
182 hashing ^= hash(tuple(self))
183 return hashing
184 raise BoxTypeError("unhashable type: 'BoxList'")
185
186 def to_list(self) -> list:
187 new_list: list[Any] = []

Callers

nothing calls this directly

Calls 2

BoxTypeErrorClass · 0.90
getMethod · 0.80

Tested by

no test coverage detected