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

Method __hash__

box/box.py:382–388  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

380 return output
381
382 def __hash__(self):
383 if self._box_config["frozen_box"]:
384 hashing = 54321
385 for item in self.items():
386 hashing ^= hash(item)
387 return hashing
388 raise BoxTypeError('unhashable type: "Box"')
389
390 def __dir__(self) -> list[str]:
391 items = set(super().__dir__())

Callers

nothing calls this directly

Calls 2

itemsMethod · 0.95
BoxTypeErrorClass · 0.90

Tested by

no test coverage detected